config = new CompositeConfiguration();
PropertiesConfiguration pc;
// Only add these config sources if we allow external configuration
if (allowexternal) {
// Override with system properties, this is prio 1 if it exists (java -Dscep.test=foo)
config.addConfiguration(new SystemConfiguration());
log.info("Added system properties to configuration source (java -Dfoo.prop=bar).");
// Override with file in "application server home directory"/conf, this is prio 2
File f1 = new File("conf/" + PROPERTIES_FILENAME);
pc = new PropertiesConfiguration(f1);
pc.setReloadingStrategy(new FileChangedReloadingStrategy());