inprogress.setEndTime(System.currentTimeMillis());
inprogress.setResults("This synchronization seems to have stalled or ended abnormally.");
}
}
ContentSyncResults persistedResults = null; // leave it as null if something is already in progress
if (!alreadyInProgress) {
entityManager.persist(results);
persistedResults = (ContentSyncResults) results;
}