public class CarbonConfigurationFactory {
private static final Logger logger = LoggerFactory.getLogger(CarbonConfigurationFactory.class);
private static Hashtable<String, String> deploymentConfigs = new Hashtable<>();
private CarbonConfigurationFactory() {
}
<BUG>public static Object getConfigurationInstance(String configClassName) throws CarbonConfigurationException,

ClassNotFoundException {
Class configClass = Class.forName(configClassName);
Yaml yaml = new Yaml(new CustomClassLoaderConstructor(configClass,</BUG>
configClass.getClassLoader()));

public class CarbonConfigurationFactory {
private static final Logger logger = LoggerFactory.getLogger(CarbonConfigurationFactory.class);
private static Hashtable<String, String> deploymentConfigs = new Hashtable<>();
private CarbonConfigurationFactory() {
}
public static Object getConfigurationInstance(String configClassName) throws CarbonConfigurationException {
Class configClass;
try {
configClass = Class.forName(configClassName);
} catch (ClassNotFoundException e) {
throw new CarbonConfigurationException("Config Class : " + configClassName + "does not exists.", e);
}
Yaml yaml = new Yaml(new CustomClassLoaderConstructor(configClass,
configClass.getClassLoader()));
