code: protected void appendList(StringBuilder buff, String name, List list) {
      buff.append(',');
      buff.append(name);
      buff.append("=[");
      if (list != null) {
        // Take a copy of the array, to be very sure it doesn't change under us
        Object[] items = list.toArray();
        for (int i = 0; i < items.length; i++) {
          if (i != 0) buff.append(',');
          if (items[i] instanceof byte[]) {
            // Print out the bytes in hex.
            buff.append(HexUtil.toString((byte[])items[i]));
          }
          else {
            // Just use the default toString
            buff.append(items[i]);
          }
        }
      }
      buff.append(']');
    }
  }
docs: Helper method to append a list (which doesn't have a standard toString
  as in the case of JsVaringListImpl) to a summary trace string.
  Also provides hex output for byte arrays.