String js = JsFunctionBuilder.function("onQueryImportResponse").param(response).build();
target.appendJavaScript(js);
}
private void updatePreferences(ImportOptions importOptions) {
UserPreferences prefs = um.readPreferences();
prefs.setImportContinueWithErrors(importOptions.isContinueWithErrors())
.setImportIncludeInHistory(importOptions.isIncludeInHistory())
.setImportParallel(importOptions.isParallel());
um.storePreferences(prefs);
}