code: private void toStringList(final StringBuilder sb, final List < ? > list,
              final String title) {
          sb.append(',');
          sb.append(title + ":[");
          boolean first = true;
          for (Object child : list) {
              if (!first) {
                  sb.append(",");
              } else {
                  first = false;
              }
              sb.append(child.toString());
          }
          sb.append("]");
      }
docs: Adds list elements to a string builder.
  
  @param sb the string builder
  @param list list of elements
  @param title name of elements list