(admingrouphome.findByPrimaryKey(new AdminGroupPK(admingroupname, caid))).addAccessRules(accessrules);
(admingrouphome.findByGroupNameAndCAId(admingroupname, caid)).addAccessRules(accessrules);
    public void addAccessRules(Admin admin, String admingroupname, int caid, Collection accessrules){      if(!(admingroupname.equals(DEFAULTGROUPNAME) && caid == ILogSessionLocal.INTERNALCAID)){        try{          (admingrouphome.findByPrimaryKey(new AdminGroupPK(admingroupname, caid))).addAccessRules(accessrules);          signalForAuthorizationTreeUpdate();          logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES,"Added accessrules to admingroup : " + admingroupname );        }catch(Exception e){           error("Can't add access rule:"+e.getMessage());           logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error adding accessrules to admingroup : " + admingroupname);        }      }      } // addAccessRules