// If default values have been set, create a new repository
// configuration element using the default values
// and the values in the selector.
// If no default values, just use the selector.
final CombinedConfiguration config = new CombinedConfiguration();
HierarchicalConfiguration defConf = defaultConfigs.get(key);
if ( defConf == null) {
config.addConfiguration(repConf);
}
else {
config.addConfiguration(repConf);
config.addConfiguration(defConf);
}
try {
reply = factory.newInstance(Thread.currentThread().getContextClassLoader().loadClass(repClass), logger, config);