configs = new HashMap<String, ComponentConfig>();
}
@SuppressWarnings("unchecked")
public <T extends ComponentConfig> T getConfig(Class<T> _c) throws Exception {
ComponentConfig config = configs.get(_c.getCanonicalName());
if (config == null) {
T newConfig = _c.newInstance();
newConfig.init(this);
configs.put(_c.getCanonicalName(), newConfig);
return newConfig;