if (editorConnector.insertTag(document, artefactTag.toString()))
doIntegration = true;
}
if (doIntegration) {
IntegrationJob job = new IntegrationJob(document);
job.setUser(true);
job.schedule();
try {
job.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
if (job.getResult().isOK())
document.setModified(true);
}
}