PrintWriter writer = beginHttpResponse(response, HttpServletResponse.SC_NOT_FOUND);
PrintWriter writer = beginHtmlResponse(response, HttpServletResponse.SC_NOT_FOUND);
    protected void report404(HttpServletResponse response) throws ServletException {        try {            PrintWriter writer = beginHttpResponse(response, HttpServletResponse.SC_NOT_FOUND);            writer.println(makeHtmlText("Not Found"));            writer.flush();            writer.close();        } catch (IOException e) {            throw new ServletException(e);        }    }