if (!(admingroupname.equals(DEFAULTGROUPNAME) && caid == ILogSessionLocal.INTERNALCAID)) {
if (!(admingroupname.equals(DEFAULTGROUPNAME) && caid == LogConstants.INTERNALCAID)) {
    public void replaceAccessRules(Admin admin, String admingroupname, int caid, Collection accessrules) {        if (!(admingroupname.equals(DEFAULTGROUPNAME) && caid == ILogSessionLocal.INTERNALCAID)) {            try {                AdminGroupDataLocal agdl = admingrouphome.findByGroupNameAndCAId(admingroupname, caid);                Collection currentrules = agdl.getAdminGroup().getAccessRules();                ArrayList removerules = new ArrayList();                Iterator iter = currentrules.iterator();                while (iter.hasNext()) {                    removerules.add(((AccessRule) iter.next()).getAccessRule());                }                agdl.removeAccessRules(removerules);                agdl.addAccessRules(accessrules);                signalForAuthorizationTreeUpdate();                logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES, "Replaced accessrules from admingroup : " + admingroupname);            } catch (Exception e) {            	error("Can't replace access rules: ", e);                logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES, "Error replacing accessrules from admingroup : " + admingroupname);            }        }    } // replaceAccessRules