code: public static SearchExecutor newSearchExecutor(final String baseDn, final String filterQuery, final String... params) {
          final SearchExecutor executor = new SearchExecutor();
          executor.setBaseDn(baseDn);
          executor.setSearchFilter(newSearchFilter(filterQuery, params));
          executor.setReturnAttributes(ReturnAttributes.ALL.value());
          executor.setSearchScope(SearchScope.SUBTREE);
          return executor;
      }
docs: New search executor search executor.
  
  @param baseDn      the base dn
  @param filterQuery the filter query
  @param params      the params
  @return the search executor