// stop scanning service
ResourceFactory.getResourceChangeNotifierService().stop();
ResourceFactory.getResourceChangeScannerService().stop();
// file could remain and we will see, that it has changed, but scanner didn't register that
//ruleFile.delete();
kagent.dispose();
}
private static void copy(InputStream in, OutputStream out) throws IOException {
// Transfer bytes from in to out
byte[] buf = new byte[1024];