if(issuperadministrator || authorizedcaids.containsAll(raadminsession.getEndEntityProfile(admin,profileid).getAvailableCAs())){
    private void insertAvailableEndEntityProfileAccessRules(Admin admin, ArrayList accessrules){                // Add all authorized End Entity Profiles               Iterator iter = endentityprofiles.keySet().iterator();        while(iter.hasNext()){            // Check if profiles available CAs is a subset of administrators authorized CAs            int profileid = ((Integer) iter.next()).intValue();            if(issuperadministrator || authorizedcaids.containsAll(raadminsession.getEndEntityProfile(admin,profileid).getAvailableCAs())){              // Administrator is authorized to this End Entity Profile, add it.                try{                  authorizer.isAuthorizedNoLog(admin.getAdminInformation(), ENDENTITYPROFILEPREFIX + profileid);                    addEndEntityProfile( profileid, accessrules);                }catch(AuthorizationDeniedException e){}            }        }    }