guids.add(newsItem.getGuid());
else if (newsItem.getLink() != null)
links.add(newsItem.getLink());
}
ModelSearchImpl modelSearch = (ModelSearchImpl) Owl.getPersistenceService().getModelSearch();
Map<URI, List<NewsReference>> linkToNewsRefs = modelSearch.searchNewsByLinks(links, false, monitor);
Map<IGuid, List<NewsReference>> guidToNewsRefs = modelSearch.searchNewsByGuids(guids, false, monitor);
for (INews newsItem : news) {
/* Return early on cancellation */
if (monitor.isCanceled() || Owl.isShuttingDown())
return;