AggregationManager aggManager = new AggregationManager();
aggManager.doAggregation(singleList, new LinkedList<DocumentPojo>());
aggManager.createOrUpdateFeatureEntries();
aggManager.applyAggregationToDocs(singleList);
aggManager.runScheduledDocumentUpdates();
aggManager.runScheduledSynchronization();
}
else {
for (Map.Entry<ObjectId, LinkedList<DocumentPojo>> entry: communityList.entrySet()) {
AggregationManager aggManager = new AggregationManager();
aggManager.doAggregation(entry.getValue(), new LinkedList<DocumentPojo>());