code: public static SearchExecutor newLdaptiveSearchExecutor(final String baseDn, final String filterQuery,
                                                             final List<String> params,
                                                             final String[] returnAttributes) {
          val executor = new SearchExecutor();
          executor.setBaseDn(baseDn);
          executor.setSearchFilter(newLdaptiveSearchFilter(filterQuery, params));
          executor.setReturnAttributes(returnAttributes);
          executor.setSearchScope(SearchScope.SUBTREE);
          return executor;
      }
docs: New ldaptive search executor search executor.
  
  @param baseDn           the base dn
  @param filterQuery      the filter query
  @param params           the params
  @param returnAttributes the return attributes
  @return the search executor