ByteArrayISO8859Writer writer = new ByteArrayISO8859Writer(4096);
handleErrorPage(request, writer, baseRequest.getResponse().getStatus(), baseRequest.getResponse().getReason());
writer.flush();
response.setContentLength(writer.size());
writer.writeTo(response.getOutputStream());
writer.destroy();
}
protected void handleErrorPage(HttpServletRequest request, Writer writer, int code, String message) throws IOException {
writer.write("Problem accessing ");
writer.write(request.getRequestURI());