docs: public void writeAttributeList(OutputStream out, AttributeList value) throws IOException {
          // AttributeList has no known sub-class.
          writeStartArray(out);
          if (value != null) {
              for (Attribute item : value.asList()) {
                  writeArrayItem(out);
                  writeStartObject(out);
                  writeStringField(out, OM_NAME, item.getName());
                  writePOJOField(out, OM_VALUE, item.getValue());
                  writeEndObject(out);
              }
          }
          writeEndArray(out);
      }