public void serializeBody(Object array, XMLSerializer target)
     throws SAXException, IOException, XMLStreamException {
   int len = Array.getLength(array);
   for (int i = 0; i < len; i++) {
     Object item = Array.get(array, i);
     try {
       xducer.writeText(target, item, "arrayItem");
     } catch (AccessorException e) {
       target.reportError("arrayItem", e);
     }
   }
 }