SFrame frame = getFrame(request, response);
    public static void writeHeaders(HttpServletRequest request, HttpServletResponse response, JspWriter out) throws IOException, ServletException {        synchronized (request.getSession()) {            SFrame frame = getFrame(request, response);            WingsSession wingsSession = getSession(request, response);            StringBufferDevice headerdev = new StringBufferDevice();            for (Iterator iterator = frame.headers().iterator(); iterator.hasNext();) {                Object next = iterator.next();                if (next instanceof Renderable) {                    ((Renderable) next).write(headerdev);                } else {                    Utils.write(headerdev, next.toString());                }                headerdev.write("\n".getBytes());            }            out.print(headerdev);            SessionManager.removeSession();        }    }