private static 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
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ReflectionUtils.java