if (!(oldname.equals(DEFAULTGROUPNAME) && caid == ILogSessionLocal.INTERNALCAID)) {
if (!(oldname.equals(DEFAULTGROUPNAME) && caid == LogConstants.INTERNALCAID)) {
    public void renameAdminGroup(Admin admin, String oldname, int caid, String newname) throws AdminGroupExistsException {        if (!(oldname.equals(DEFAULTGROUPNAME) && caid == ILogSessionLocal.INTERNALCAID)) {            boolean success = false;            AdminGroupDataLocal agl = null;            try {                agl = admingrouphome.findByGroupNameAndCAId(newname, caid);                throw new AdminGroupExistsException();            } catch (FinderException e) {                success = true;            }            if (success) {                try {                    agl = admingrouphome.findByGroupNameAndCAId(oldname, caid);                    agl.setAdminGroupName(newname);                    agl.setCaId(caid);                    signalForAuthorizationTreeUpdate();                } catch (Exception e) {                    error("Can't rename admingroup: ", e);                    success = false;                }            }            if (success)                logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES, "Renamed administratorgroup " + oldname + " to " + newname + ".");            else                logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES, "Error renaming administratorgroup " + oldname + " to " + newname + ".");        }    } // renameAdminGroup