EventsMap.getInstance().putEventTemplate(id, modelEvent);
}
public static final void saveFeed(ObjectContainer db, IFeed feed) {
if (feed.getId() == null && feedExists(db, feed.getLink()))
throw new UniqueConstraintException("link", feed);
ModelEvent feedEventTemplate = new FeedEvent(feed, true);
DBHelper.putEventTemplate(feedEventTemplate);
saveAndCascadeAllNews(db, feed.getNews(), false);
saveEntities(db, feed.getCategories());