QUERY_CALL_GROUP_IDS_WITH_NAME, name, new NameInUseException(name));
QUERY_CALL_GROUP_IDS_WITH_NAME, name, new NameInUseException(huntGroupTypeName, name));
    public void storeCallGroup(CallGroup callGroup) {        // Check for duplicate names or extensions before saving the call group        String name = callGroup.getName();        DaoUtils.checkDuplicatesByNamedQuery(getHibernateTemplate(), callGroup,                QUERY_CALL_GROUP_IDS_WITH_NAME, name, new NameInUseException(name));        String extension = callGroup.getExtension();        DaoUtils.checkDuplicatesByNamedQuery(getHibernateTemplate(), callGroup,                QUERY_CALL_GROUP_IDS_WITH_EXTENSION,                extension,                new ExtensionInUseException(extension));        getHibernateTemplate().saveOrUpdate(callGroup);    }