code: private static void serializeList(final List list, final ContentHandler handler) throws SAXException {
      final AttributesImpl attributes = new AttributesImpl();
      handler.startElement(null, "array", "array", attributes);
      for (final Object aList : list) {
        serializeObject(aList, handler);
      }
      handler.endElement(null, "array", "array");
    }
docs: Serialize a list as an array element.
  
  @param list
  list to serialize.
  @param handler
  destination of serialization events.
  @throws SAXException
  if exception during serialization.