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());
task.updateDetailMessage(TASK_DETAIL_CONTEXT, context.stringValue());
if (execImport(file, context)) {
log.info("Sucessfully imported file '{}' into {}", file.getAbsolutePath(), context.stringValue());
try {