this.insideStructurer=true;
    private void structurerProcessingStart(Attributes attr) throws SAXException {        for (int i = 0; i < attr.getLength(); i++) {            String localName = attr.getLocalName(i);            String value = attr.getValue(i);            if (localName.equals(STRUCTURER_FORMAT_ATTRIBUTE)) {                currentFormat = value;            }            if (localName.equals(STRUCTURER_HOOK_XPATH_ATTRIBUTE)) {                if ("/".equals(String.valueOf(value.charAt(0)))) {                    path = "result" + value;                } else {                    path = "result/" + value;                }            }        }        if (requestedFormat.equals(currentFormat)) {            if (path == null)                path = "result/";            this.includeNodes = true;            this.insideStructurer=true;            this.recording = true;            try {                dispatcherHelper.setNamespaceHelper(                        DispatcherHelper.DISPATCHER_NAMESPACE_URI,                        DispatcherHelper.DISPATCHER_PREFIX, STRUCTURER_ELEMENT);                this.dispatcher = dispatcherHelper.getNamespaceHelper();                this.document = dispatcher.getDocument();                this.rootNode = document.getDocumentElement();                this.rootNode.setAttribute(STRUCTURER_FORMAT_ATTRIBUTE,                        currentFormat);                this.rootNode.setAttribute(STRUCTURER_HOOK_XPATH_ATTRIBUTE,                        path);                // we create the path node for the result node                DOMUtil.selectSingleNode(rootNode, path, this.processor);            } catch (Exception e) {                String error = "dispatcherError: "                        + DispatcherException.ERROR_500                        + "\n"                        + "Could not setup dispatcherHelper!\n\n DispatcherStack:\n "                        + e;                getLogger().error(error);                this.recording = false;                throw new SAXException(error);            }        } else {            path = null; // unset path because we do not process the node            this.includeNodes = false;            this.recording = false;        }    }