// consume the OM
reader = outMessage.getXMLStreamReaderWithoutCaching();
}
Source source = new StAXSource(reader);
XMLStreamWriter writer = new JsonXMLOutputFactory(config, new JacksonStreamFactory())
.createXMLStreamWriter(outputStream, charSetEncoding);
Result result = new StAXResult(writer);
String backupProp = System.getProperty("javax.xml.transform.TransformerFactory");
System.setProperty("javax.xml.transform.TransformerFactory",
"com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");