NewsEventRunnable newsEventRunnables = getNewsEventRunnables(EventsMap.getInstance().getEventRunnables());
if (newsEventRunnables == null)
return;
EntitiesToBeIndexedDAOImpl dao = getEntitiesToBeIndexedDAO();
EntityIdsByEventType newsToBeIndexed = dao.load();
Set<NewsEvent> updateEvents = new HashSet<NewsEvent>(newsEventRunnables.getUpdateEvents().size());
Set<NewsEvent> deleteEvents = new HashSet<NewsEvent>(newsEventRunnables.getRemoveEvents());
Set<NewsEvent> persistEvents = filterPersistedNewsForIndexing(newsEventRunnables.getPersistEvents());
for (NewsEvent event : newsEventRunnables.getUpdateEvents())
indexTypeForNewsUpdate(event, persistEvents, updateEvents, deleteEvents);