code: public Set<LdapEntry> searchEntities(String name, String filterExpr, Object[] filterArgs, int scope, List<String> inEntityTypes,
                                           List<String> propNames, boolean getMbrshipAttr, boolean getMbrAttr) throws WIMException {
          return searchEntities(name, filterExpr, filterArgs, scope, inEntityTypes, propNames, getMbrshipAttr, getMbrAttr,
                                iCountLimit, iTimeLimit);
      }
docs: Searches in the named context or object for entries that satisfy the given search filter
  and match the given entity types. Performs the search as specified by the search controls.
  
  <p/>Will first query the search cache. If there is a cache miss, the search will be
  sent to the LDAP server.
  
  @param name The name of the context or object to search
  @param filterExpr the filter expression to use for the search. The expression may contain
  variables of the form "{i}" where i is a nonnegative integer. May not be null.
  @param filterArgs the array of arguments to substitute for the variables in filterExpr. The
  value of filterArgs[i] will replace each occurrence of "{i}". If null, equivalent
  to an empty array.
  @param scope The search scope. One of: {@link SearchControls#OBJECT_SCOPE},
  {@link SearchControls#ONELEVEL_SCOPE}, {@link SearchControls#SUBTREE_SCOPE}.
  @param inEntityTypes The entity types to return.
  @param propNames The property names to return for the entities.
  @param getMbrshipAttr Whether to request the configured membership attribute to be returned.
  @param getMbrAttr Whether to request the configured member attribute to be returned.
  @return The {@link LdapEntry}s that match the search criteria.
  @throws WIMException If the search failed with an error.