file.delete();
fileManager.write(file, first);
Thread.sleep(1100);
// start scanning service with interval 1s
ResourceChangeScannerConfiguration config = ResourceFactory
.getResourceChangeScannerService()
.newResourceChangeScannerConfiguration();
config.setProperty("drools.resource.scanner.interval", "1");
ResourceFactory.getResourceChangeScannerService().configure(config);
ResourceFactory.getResourceChangeNotifierService().start();
ResourceFactory.getResourceChangeScannerService().start();
// load knowledge base via knowledge agent