this.hooksXSL=parameters.getParameter(HOOKS_TRANSFORMER_PARAMETER,null); if (this.hooksXSL.equals("")||this.hooksXSL==null){ String error = "dispatcherError:\n" + "You have to set the \"hooksTransformer\" parameter in the sitemap!"; getLogger().error(error); throw new ProcessingException(error); }
    public void setup(SourceResolver resolver, Map objectModel, String src,            Parameters par) throws ProcessingException, SAXException,            IOException {        super.setup(resolver, objectModel, src, par);        this.processor = null;        this.dispatcherHelper = null;        this.contract = null;        try {            this.dispatcherHelper = new DispatcherHelper(manager);            this.processor = (XPathProcessor) this.manager                    .lookup(XPathProcessor.ROLE);        } catch (Exception e) {            String error = "dispatcherError:\n Could not set up the dispatcherHelper!\n DispatcherStack: "                    + e;            getLogger().error(error);            throw new ProcessingException(error);        }        storedPrefixMap = new HashMap();        insideProperties = false;        this.requestedFormat = parameters.getParameter(                STRUCTURER_FORMAT_ATTRIBUTE, null);        if (requestedFormat == null) {            String error = "dispatcherError:\n"                    + "You have to set the \"type\" parameter in the sitemap!";            getLogger().error(error);            throw new ProcessingException(error);        }    }