private synchronized boolean internalAddConfig()

in archaius2-core/src/main/java/com/netflix/archaius/config/DefaultCompositeConfig.java [206:226]


    private synchronized boolean internalAddConfig(String name, Config child) throws ConfigException {
        LOG.info("Adding config {} to {}", name, hashCode());
        
        if (child == null) {
            // TODO: Log a warning?
            return false;
        }
        
        if (name == null) {
            throw new ConfigException("Child configuration must be named");
        }
        
        if (state.containsConfig(name)) {
            LOG.info("Configuration with name'{}' already exists", name);
            return false;
        }

        state = state.addConfig(name, child);
        postConfigAdded(child);
        return true;
    }