if (byteSource == null) {
byteSource = props.asByteSource(LaunchConfigs.Property.CONFIGURATION_FILE);
}
configurationSource = new DefaultConfigurationSource(classLoader, byteSource, overrideProperties, defaultProperties);
}
ConfigurationFactoryFactory configurationFactoryFactory = new DefaultConfigurationFactoryFactory(classLoader);
ConfigurationFactory configurationFactory = configurationFactoryFactory.build(configurationSource);
if (configurationClass == null) {
try {
configurationClass = props.asClass(LaunchConfigs.Property.CONFIGURATION_CLASS, Configuration.class);
} catch (ClassNotFoundException ex) {
throw new ConfigurationException("Could not load specified configuration class", ex);