// see if we should only keep valid tools, data, and properties
String cleanConfig = findInitParameter(CLEAN_CONFIGURATION_KEY, config);
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
getLog().debug("Configuring toolboxFactory with: "+factoryConfig);
factory.configure(factoryConfig);