/**
   * Adds the feed to the database. Also notifies the appropriate model listeners.
   *
   * @param feed the feed
   * @return the feed that was added
   * @throws SystemException if a system exception occurred
   */
  @Indexable(type = IndexableType.REINDEX)
  @Override
  public Feed addFeed(Feed feed) throws SystemException {
    feed.setNew(true);

    return feedPersistence.update(feed);
  }
  /**
   * Adds the feed to the database. Also notifies the appropriate model listeners.
   *
   * @param feed the feed
   * @return the feed that was added
   * @throws SystemException if a system exception occurred
   */
  public Feed addFeed(Feed feed) throws SystemException {
    feed.setNew(true);

    feed = feedPersistence.update(feed, false);

    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());

    if (indexer != null) {
      try {
        indexer.reindex(feed);
      } catch (SearchException se) {
        if (_log.isWarnEnabled()) {
          _log.warn(se, se);
        }
      }
    }

    return feed;
  }