@SuppressWarnings("deprecation")
        public <T extends ConfigInstance> ConfigMap add(Class<T> clazz, String configId) {
            ConfigKey<T> key = new ConfigKey<>(clazz, configId);
            put(key, ConfigGetter.getConfig(key.getConfigClass(), key.getConfigId()));
            return this;
        }
@author gjoranv
@author Tony Vaagenes
@author ollivir
container-core/src/test/java/com/yahoo/container/di/componentgraph/core/ComponentGraphTest.java