if(accessrulestring.startsWith(AvailableAccessRules.ENDENTITYPROFILEPREFIX)){
if(accessrulestring.startsWith("/endentityprofilesrules")){
    public AccessRulesView(Collection accessrules){      this.rolebasedaccessrules = new ArrayList();      this.regularaccessrules = new ArrayList();      this.endentityprofileaccessrules = new ArrayList();      this.caaccessrules = new ArrayList();                      Iterator iter = accessrules.iterator();      while(iter.hasNext()){        Object obj = iter.next();        String accessrulestring = "";        AccessRule accessrule = null;        if( obj instanceof AccessRule ){          accessrulestring = ((AccessRule) obj).getAccessRule();          accessrule = (AccessRule) obj;        }else{          accessrulestring = (String) obj;          accessrule = new AccessRule(accessrulestring, 0,  false);        }          boolean regular = true;                // Check if rule is a role based one        for(int i=0; i< AvailableAccessRules.ROLEACCESSRULES.length; i++){           if(accessrulestring.equals(AvailableAccessRules.ROLEACCESSRULES[i])){             this.rolebasedaccessrules.add(accessrule);             regular=false;           }          }                // Check if rule is end entity profile access rule        if(accessrulestring.startsWith(AvailableAccessRules.ENDENTITYPROFILEPREFIX)){          this.endentityprofileaccessrules.add(accessrule);          regular=false;        }                // Check if rule is CA access rule        if(accessrulestring.startsWith(AvailableAccessRules.CAPREFIX)){          this.caaccessrules.add(accessrule);          regular=false;        }                        // Otherwise it's a regular accessrule.        if(regular)          this.regularaccessrules.add(accessrule);                }             Collections.sort(this.rolebasedaccessrules);      Collections.sort(this.regularaccessrules);      Collections.sort(this.endentityprofileaccessrules);      Collections.sort(this.caaccessrules);          }