public boolean containsKey()

in src/main/java/org/apache/maven/plugins/invoker/CompositeMap.java [83:101]


    public boolean containsKey(Object key) {
        if (!(key instanceof String)) {
            return false;
        }

        String expression = (String) key;
        if (expression.startsWith("project.") || expression.startsWith("pom.")) {
            try {
                Object evaluated = ReflectionValueExtractor.evaluate(expression, this.mavenProject);
                if (evaluated != null) {
                    return true;
                }
            } catch (Exception e) {
                // uhm do we have to throw a RuntimeException here ?
            }
        }

        return properties.containsKey(key) || mavenProject.getProperties().containsKey(key);
    }