final String message = "Extension {0} is already in use.  " + "Please choose another voicemail extension."; throw new UserException(message, voiceMailExtension); }   String[] aliases = rule.getAttendantAliasesAsArray(); for (int i = 0; i < aliases.length; i++) { String ruleAlias = aliases[i]; if (!m_aliasManager.canObjectUseAlias(rule, ruleAlias)) { final String message = "Alias \"{0}\" is already in use.  " + "Please choose another alias for this auto attendant."; throw new UserException(message, ruleAlias); }
throw new ExtensionInUseException("voicemail", voiceMailExtension);
    private void checkAliasCollisionsForInternalRule(InternalRule rule) {        // Check the voicemail extension        String voiceMailExtension = rule.getVoiceMail();        if (!m_aliasManager.canObjectUseAlias(rule, voiceMailExtension)) {            final String message = "Extension {0} is already in use.  "                    + "Please choose another voicemail extension.";            throw new UserException(message, voiceMailExtension);        }        // Check the auto attendant aliases        String[] aliases = rule.getAttendantAliasesAsArray();        for (int i = 0; i < aliases.length; i++) {            String ruleAlias = aliases[i];            if (!m_aliasManager.canObjectUseAlias(rule, ruleAlias)) {                final String message = "Alias \"{0}\" is already in use.  "                        + "Please choose another alias for this auto attendant.";                throw new UserException(message, ruleAlias);            }        }    }