public static final void saveFeed(ObjectContainer db, IFeed feed) {
if (feed.getId() == null && feedExists(db, feed.getLink()))
throw new UniqueConstraintException("link", feed); //$NON-NLS-1$
ModelEvent feedEventTemplate = new FeedEvent(feed, true);
DBHelper.putEventTemplate(feedEventTemplate);
saveAndCascadeAllNews(db, feed.getNews(), false);
saveEntities(db, feed.getCategories());
saveEntity(db, feed.getAuthor());
saveEntity(db, feed.getImage());