if (StandardWatchEventKinds.ENTRY_CREATE.equals(event.kind())) {
if (file.isDirectory()) {
//recursive registration of sub-directories
register(Paths.get(dir.toString(), item.toString()), watcher, StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE);
task.updateProgress(++count);
} else {
URI context = getTargetContext(file);
log.debug("Importing '{}'...", file.getAbsolutePath());
task.updateMessage("importing...");
task.updateDetailMessage(TASK_DETAIL_PATH, file.getAbsolutePath());