admingrouphome.create(admingroupname, caid);
admingrouphome.create(new Integer(findFreeAdminGroupId()), admingroupname, caid);
    public void addAdminGroup(Admin admin, String admingroupname, int caid) throws AdminGroupExistsException {      if(!(admingroupname.equals(DEFAULTGROUPNAME) && caid == ILogSessionLocal.INTERNALCAID)){                boolean success=true;        try{          admingrouphome.findByPrimaryKey(new AdminGroupPK(admingroupname, caid));          success=false;        }catch(FinderException e){        }        if(success){          try{            admingrouphome.create(admingroupname, caid);            success=true;          }catch(CreateException e){             error("Can't add admingroup:"+e.getMessage());             success=false;          }        }          if(success){          logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES,"Administratorgroup " + admingroupname + " added.");         }else{          logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error adding administratorgroup "  + admingroupname + ".");          throw new AdminGroupExistsException();        }      }      } // addAdminGroup