question: public Set < IPrivilege > search ( Subject adminSubject , String realm , BufferedIterator iterator , ResourceSearchIndexes indexes , Set < String > subjectIndexes , boolean bSubTree , Set < String > excludeDNs ) throws EntitlementException { SSOToken token = getSSOToken ( adminSubject ) ; Set < IPrivilege > results = searchPrivileges ( realm , iterator , indexes , subjectIndexes , bSubTree , excludeDNs ) ; int countInt = getNumberOfReferrals ( realm ) ; if ( countInt > 0 ) { results . addAll ( searchReferral ( token , realm , iterator , indexes , bSubTree , excludeDNs ) ) ; } return results ; }
target:  Returns a set of privilege that satifies the resource and subject indexes.