/**
   * Adds the document library file shortcut to the database. Also notifies the appropriate model
   * listeners.
   *
   * @param dlFileShortcut the document library file shortcut
   * @return the document library file shortcut that was added
   * @throws SystemException if a system exception occurred
   */
  public DLFileShortcut addDLFileShortcut(DLFileShortcut dlFileShortcut) throws SystemException {
    dlFileShortcut.setNew(true);

    dlFileShortcut = dlFileShortcutPersistence.update(dlFileShortcut, false);

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

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

    return dlFileShortcut;
  }