}
    public AdminGroup getAdminGroup(){      ArrayList accessrules = new ArrayList();      ArrayList adminentities = new ArrayList();      Iterator i = null;      if(getAdminEntities()!=null){        i =  getAdminEntities().iterator();        while(i.hasNext()){          AdminEntityDataLocal ae = (AdminEntityDataLocal) i.next();          adminentities.add(ae.getAdminEntity(getCAId()));        }      }      if(getAccessRules()!=null){        i =  getAccessRules().iterator();        while(i.hasNext()){          AccessRulesDataLocal ar = (AccessRulesDataLocal) i.next();          accessrules.add(ar.getAccessRuleObject());        }      }      return new AdminGroup(getPK().intValue() ,getAdminGroupName(), getCAId(), accessrules, adminentities);    } // getAdminGroup 