repo = entityManager.merge(repo);
log.debug("User [" + subject + "] updated [" + repo + "].");
try {
ContentServerPluginContainer pc = ContentManagerHelper.getPluginContainer();
pc.unscheduleRepoSyncJob(repo);
pc.scheduleRepoSyncJob(repo);
} catch (Exception e) {
log.warn("Failed to reschedule repository synchronization job for [" + repo + "].", e);
}