// setup first component to stax part
XMLFilterImplEx filter = new XMLFilterImplEx();
filter.setContentHandler((SAXConsumer) this.saxTransformer);
filter.setLexicalHandler((SAXConsumer) this.saxTransformer);
this.staxToSaxHandler = new XMLEventToContentHandler(filter);
// setup last component to stax part
this.saxToStaxHandler = new StAXEventContentHandler(this);
this.saxTransformer.setConsumer(this.saxToStaxHandler);
}