TransformationContext tContext = new TransformationContextImpl();
tContext.setSourceDataType(sourceDataType);
tContext.setTargetDataType(targetDataType);
ExtensionPointRegistry registry = new DefaultExtensionPointRegistry();
JAXBContextHelper contextHelper = JAXBContextHelper.getInstance(registry);
// Force the JAXBContext to be cached
contextHelper.createJAXBContext(tContext, true);
long start = System.currentTimeMillis();
JAXB2OMElement t1 = new JAXB2OMElement(registry);
OMElement om = t1.transform(po, tContext);
long duration1 = System.currentTimeMillis() - start;