if (rule instanceof AttendantRule) { checkAliasCollisionsForAttendantRule((AttendantRule) rule); }
    public void storeRule(DialingRule rule) {        // Check for duplicate names before saving the rule        String name = rule.getName();        if (!m_aliasManager.canObjectUseAlias(rule, name)) {            throw new NameInUseException(DIALING_RULE, name);        }        // For internal rules, check for alias collisions. Note: this method throws        // an exception if it finds a duplicate.        if (rule instanceof InternalRule) {            checkAliasCollisionsForInternalRule((InternalRule) rule);        }        // Save the rule. If it's a new rule then attach it to the dial plan first        // and save it via the dial plan.        if (rule.isNew()) {            DialPlan dialPlan = getDialPlan();            dialPlan.addRule(rule);            getHibernateTemplate().saveOrUpdate(dialPlan);        } else {            getHibernateTemplate().saveOrUpdate(rule);        }    }