} 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 {
//delete the imported file
log.debug("Deleting {}...", file.getAbsolutePath());