if ("true".equals(cleanConfig))
{
// remove invalid tools, data, and properties from the configuration
ConfigurationCleaner cleaner = new ConfigurationCleaner();
cleaner.setLog(getLog());
cleaner.clean(factoryConfig);
}
// apply this configuration to the specified factory
debug("Configuring factory with: %s", factoryConfig);
configure(factoryConfig);