in activemq-kahadb-exporter/src/main/java/org/apache/activemq/cli/artemis/schema/ArtemisJournalMarshaller.java [52:59]
public ArtemisJournalMarshaller(final XMLStreamWriter xmlWriter) throws JAXBException {
this.context = JAXBContext.newInstance(ObjectFactory.class);
this.marshaller = context.createMarshaller();
this.marshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
PrettyPrintHandler handler = new PrettyPrintHandler(xmlWriter);
this.xmlWriter = (XMLStreamWriter) Proxy.newProxyInstance(XMLStreamWriter.class.getClassLoader(), new Class[]{XMLStreamWriter.class}, handler);
}