private String getTaskName(long id, String name) {
    if (name == null) {
      return Long.toString(id);
    }
    return id + " (" + name + ")";
  }
Print all of the thread's information and stack traces.

@param stream the stream to
@param title a string title for the stack trace
common/src/java/org/apache/hive/http/StackServlet.java