question: public IdSearchResults searchIdentities ( IdType type , String pattern , Map avPairs , boolean recursive , int maxResults , int maxTime , Set returnAttributes , boolean returnAllAttributes ) throws IdRepoException , SSOException { IdSearchControl crtl = new IdSearchControl ( ) ; crtl . setSearchModifiers ( IdSearchOpModifier . OR , avPairs ) ; crtl . setRecursive ( recursive ) ; crtl . setMaxResults ( maxResults ) ; crtl . setTimeOut ( maxTime ) ; crtl . setReturnAttributes ( returnAttributes ) ; crtl . setAllReturnAttributes ( returnAllAttributes ) ; CrestQuery crestQuery = new CrestQuery ( pattern ) ; return searchIdentities ( type , crestQuery , crtl ) ; }
target:  Searches for identities of a certain type. The iterator returns AMIdentity objects for use by the application.