ApplicationContext appCtx = ApplicationContext.getInstance();
// create harvester engine
MessageBroker messageBroker = new MessageBroker();
messageBroker.setBundleBaseName(MessageBroker.DEFAULT_BUNDLE_BASE_NAME);
Harvester harvester = new Harvester(messageBroker, appCtx.getConfiguration().getHarvesterConfiguration());
appCtx.setHarvestingEngine(harvester);
CfgConfigFileProcessor processor = new CfgConfigFileProcessor();
processor.processConfigFile(new File(url.getPath()),this,true);
}