code: public static String getBufferTraceInfo(WsByteBuffer buffer) {
          if (null == buffer) {
              return "null";
          }
          StringBuilder sb = new StringBuilder(64);
          sb.append("hc=").append(buffer.hashCode());
          sb.append(" pos=").append(buffer.position());
          sb.append(" lim=").append(buffer.limit());
          sb.append(" cap=").append(buffer.capacity());
          return sb.toString();
      }
docs: This method is called for tracing in various places. It returns a string that
  represents the buffer including hashcode, position, limit, and capacity.
  
  @param buffer buffer to get debug info on
  @return string representing the buffer