code: public static String dumpThreads() {
          final StringWriter sout = new StringWriter(); // Capture listing in a
          // string
          final PrintWriter out = new PrintWriter(sout);
          Util.listAllThreads(out);
          out.flush();
          return sout.toString();
      }
docs: Finds information about the threads and dumps them into a String.
  
  @return the String containing info about all threads