boolean isWrapped = false;
XMLDocument document = toXMLDocument(callback.getTypeHelper(), new Object[]{obj}, elName, isWrapped);
// HACK: [rfeng] We should use the transformer in an interceptor
XMLDocument2XMLStreamReader transformer = new XMLDocument2XMLStreamReader();
XMLStreamReader reader = transformer.transform(document, null);
try {
//CeltixFire supports Stax, we should not need to do following anymore.
readDocElements(output, reader, true, null);
} catch (XMLStreamException e) {