public void run() {
String oldContext = ContextHolder.get().getCurrentContextId();
ContextHolder.get().setCurrentContextId("userprojects-jira");
try {
LOG.info("Trying to authenticate to the JIRA server on {}", new Object[] { ServerConfig.uri });
JiraClient jiraClient = JiraClientFactory.create();
synchronizationService.syncFromJiraServerToOpenEngSB(jiraClient);
} catch (Exception e) {
LOG.error("Could not sync from JIRA server to OpenEngSB", e);
}
ContextHolder.get().setCurrentContextId(oldContext);