code: public static String printSearchControls(SearchControls searchControls) {
          StringBuffer result = new StringBuffer();
          result.append("[searchScope: ").append(searchControls.getSearchScope());
          result.append(", timeLimit: ").append(searchControls.getTimeLimit());
          result.append(", countLimit: ").append(searchControls.getCountLimit());
          result.append(", returningObjFlag: ").append(searchControls.getReturningObjFlag());
          result.append(", returningAttributes: ").append(
                                                          WIMTraceHelper.printObjectArray(searchControls.getReturningAttributes())).append("]");
          return result.toString();
  
      }
docs: Helper method used by trace to print out detail informaiton about the LDAP <code>javax.naming.directory.SearchControl</code>.
  
  @param searchControls The <code>SearchControl</code> object needs to print out.
  
  @return The print out string of the <code>SearchControl</code> object.