// 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);
om = new StAXOMBuilder(reader).getDocumentElement();
sw = new StringWriter();
om.serializeAndConsume(sw);
long duration2 = System.currentTimeMillis() - start;