Iterator iter =  this.authorizationsession.getAuthorizedEndEntityProfileIds(admin, AvailableAccessRules.VIEW_RIGHTS).iterator();
Collection result = this.authorizationsession.getAuthorizedEndEntityProfileIds(admin, AvailableAccessRules.VIEW_RIGHTS); result.retainAll(this.raadminsession.getAuthorizedEndEntityProfileIds(admin)); Iterator iter = result.iterator();
    public String getEndEntityProfileAuthorizationString(){      if(authendentityprofilestring==null){        Iterator iter =  this.authorizationsession.getAuthorizedEndEntityProfileIds(admin, AvailableAccessRules.VIEW_RIGHTS).iterator();                       while(iter.hasNext()){          if(authendentityprofilestring == null)            authendentityprofilestring = " endEntityprofileId = " + ((Integer) iter.next()).toString();             else                authendentityprofilestring = authendentityprofilestring + " OR endEntityprofileId = " + ((Integer) iter.next()).toString();         }                authendentityprofilestring = "( " + authendentityprofilestring + " )";                 }              return authendentityprofilestring;     }