JAXB2OMElement t1 = new JAXB2OMElement(registry);
OMElement om = t1.transform(po, tContext);
long duration1 = System.currentTimeMillis() - start;
StringWriter sw = new StringWriter();
// serializeAndConsume() will trigger the JAXBDataSource.serialize(Writer, OMOutputFormat)
om.serializeAndConsume(sw);
System.out.println(sw.toString());
start = System.currentTimeMillis();
Node node = new JAXB2Node(new DefaultExtensionPointRegistry()).transform(po, tContext);
XMLStreamReader reader = new Node2XMLStreamReader().transform(node, null);