staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, XMLInputFactory.newInstance(), XMLOutputFactory.newInstance());
NodeImplementationFactory nodeFactory = new NodeImplementationFactoryImpl();
factories.addFactory(nodeFactory);
NodeImplementationProcessor nodeProcessor = new NodeImplementationProcessor(factories);
staxProcessors.addArtifactProcessor(nodeProcessor);
}