+ "Could not get the properties for "+propertyURI;
+ "Could not get the properties for "+propertyURI +"\n DispatcherStack: "+ e1;
    public void setup(SourceResolver resolver, Map objectModel, String src,            Parameters par) throws ProcessingException, SAXException,            IOException {        super.setup(resolver, objectModel, src, par);        localRecycle();        try {            this.dispatcherHelper = new DispatcherHelper(manager);            this.processor = (XPathProcessor) this.manager                    .lookup(XPathProcessor.ROLE);            m_resolver = (SourceResolver) manager.lookup(SourceResolver.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();        this.parameterHelper = new HashMap();        this.hooksPosition = new HashMap();        this.allowMarkup = Boolean.getBoolean(parameters.getParameter(                DISPATCHER_ALLOW_MARKUP, null));        this.requestId= parameters.getParameter(                DISPATCHER_REQUEST_ATTRIBUTE, null);        if (requestId == null) {            String error = "dispatcherError:\n"                    + "You have to set the \"request\" parameter in the sitemap!";            getLogger().error(error);            throw new ProcessingException(error);        }        String propertyURI= "cocoon://"+requestId+".props";        try {            this.defaultProperties = org.apache.forrest.dispatcher.util.SourceUtil            .readDOM(propertyURI, this.manager);        } catch (Exception e1) {            String error = "dispatcherError:\n"                + "Could not get the properties for "+propertyURI;        getLogger().error(error);        throw new ProcessingException(error);        }        parameterHelper.put(DISPATCHER_REQUEST_ATTRIBUTE, requestId);        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!\n DispatcherStack: " + e1;            getLogger().error(error);            throw new ProcessingException(error);        }        parameterHelper.put(STRUCTURER_FORMAT_ATTRIBUTE, requestedFormat);        /*         * this.pathXSL = parameters.getParameter(PATH_PARAMETER,null); if         * (this.pathXSL==null){ String warning = "dispatcherError:\n" + "You         * did not set up the \"path\" parameter in the sitemap, we are not         * going to support default variables in contracts." + " Meaning that         * you are not able to use e.g. $skin-img-dir, if you do the contract         * bean implementation will throw an exception.";         * getLogger().warn(warning); }         * parameterHelper.put(PATH_PARAMETER,pathXSL);         */        this.hooksXSL = parameters.getParameter(HOOKS_TRANSFORMER_PARAMETER,                null);        try {            if (this.hooksXSL == null || this.hooksXSL.equals("")) {                String warning = "dispatcherError:\n"                        + "You did not set up the \"hooksTransformer\" parameter in the sitemap, we are not going to transform forrest:hooks elements."                        + " For text output where you would not have to use hooks as structurer, the way you want it.";                getLogger().warn(warning);            } else {                DOMSource stylesheet = new DOMSource(dispatcherHelper                        .getDocument(this.hooksXSL));                this.structurerTransformer = dispatcherHelper                        .createTransformer(stylesheet);            }            parameterHelper.put(HOOKS_TRANSFORMER_PARAMETER, hooksXSL);        } catch (Exception e) {            String error = "dispatcherError:\n"                    + "Could not set up the \"hooks transformer\".\n\n DispatcherStack:\n "                    + e;            getLogger().error(error);            throw new ProcessingException(error);        }    }