String footerJSP = JSPManager.getLocalJSP(footer);
    public int doEndTag()        throws JspException    {        // Footer file to use        String footer = "/layout/footer-default.jsp";        // Choose default flavour unless one is specified        if (style != null)        {            footer = "/layout/footer-" + style.toLowerCase() + ".jsp";        }        try        {            // Ensure body is included before footer            pageContext.getOut().flush();            // Context objects            ServletRequest request = pageContext.getRequest();            ServletResponse response = pageContext.getResponse();            ServletConfig config = pageContext.getServletConfig();            if (sidebar != null)            {                request.setAttribute("dspace.layout.sidebar", sidebar);            }            String footerJSP = JSPManager.getLocalJSP(footer);            RequestDispatcher rd =                config.getServletContext().getRequestDispatcher(footerJSP);                        rd.include(request, response);        }        catch (ServletException se)        {            throw new JspException("Got ServletException: " + se);        }        catch (IOException ioe)        {            throw new JspException("Got IOException: " + ioe);        }        return EVAL_PAGE;    }