/**
   * Adds the m d r rule to the database. Also notifies the appropriate model listeners.
   *
   * @param mdrRule the m d r rule
   * @return the m d r rule that was added
   */
  @Indexable(type = IndexableType.REINDEX)
  @Override
  public MDRRule addMDRRule(MDRRule mdrRule) {
    mdrRule.setNew(true);

    return mdrRulePersistence.update(mdrRule);
  }
 @Override
 public Long get(MDRRule mdrRule) {
   return mdrRule.getRuleId();
 }