Map<String, String> requiredProperties;
ConfigurationFactory configurationFactory;
if (requiredConfigurationProperties == null) {
// initialize configuration
log.info("Loading configuration");
ConfigurationLoader loader = new ConfigurationLoader();
requiredProperties = Collections.emptyMap();
String configFile = System.getProperty("config");
if (configFile != null) {
requiredProperties = loader.loadPropertiesFrom(configFile);
}
}
else {
requiredProperties = requiredConfigurationProperties;
}