ContentServerPluginContainer pc = ContentManagerHelper.getPluginContainer();
for (int id : repoIds) {
try {
Repo repo = getRepo(subject, id);
pc.syncRepoNow(repo);
syncCount++;
} catch (SchedulerException e) {
log.error("Error synchronizing repo with id [" + id + "]", e);
}
}