XMLUtils.valueOf(new IncludeXMLConsumer(super.xmlConsumer), this.rootNode); this.recording = false; this.insideStructurer=false;
try { DOMSource stylesheet = new DOMSource(dispatcherHelper.getDocument(this.hooksXSL)); Transformer transformer = dispatcherHelper.createTransformer(stylesheet); DOMSource source = new DOMSource(this.rootNode.getFirstChild().getFirstChild()); DOMResult result = new DOMResult(); transformer.transform(source, result); XMLUtils.valueOf(new IncludeXMLConsumer(super.xmlConsumer), result.getNode()); } catch (Exception e) { String error = "dispatcherError: " + DispatcherException.ERROR_500 + "\n" + "Could not setup final transformer!\n\n DispatcherStack:\n " + e; getLogger().error(error); this.recording = false; throw new SAXException(error); } finally { this.recording = false; this.insideStructurer = false; }
    private void structurerProcessingEnd(String raw) throws SAXException {        if (this.recording) {            XMLUtils.valueOf(new IncludeXMLConsumer(super.xmlConsumer),                    this.rootNode);            this.recording = false;            this.insideStructurer=false;        }        if (getLogger().isDebugEnabled()) {            getLogger().debug(                    "Ending \"" + STRUCTURER_ELEMENT + "\" element: " + raw);        }    }