template = template + "<BODY>WebScarab encountered an error trying to retrieve <P><pre>" + request.toString() + "</pre><P>"; template = template + "The error was : <P><pre>" + message + "</pre><P></HTML>";
template = template + "<BODY>WebScarab encountered an error trying to retrieve <P><pre>" + HtmlEncoder.encode(request.toString()) + "</pre><P>"; template = template + "The error was : <P><pre>" + HtmlEncoder.encode(message) + "</pre><P></HTML>";
    private Response errorResponse(Request request, String message) {        Response response = new Response();        response.setRequest(request);        response.setVersion("HTTP/1.0");        response.setStatus("500");        response.setMessage("WebScarab error");        response.setHeader("Content-Type","text/html");        response.setHeader("Connection","Close");        String template = "<HTML><HEAD><TITLE>WebScarab Error</TITLE></HEAD>";        template = template + "<BODY>WebScarab encountered an error trying to retrieve <P><pre>" + request.toString() + "</pre><P>";        template = template + "The error was : <P><pre>" + message + "</pre><P></HTML>";        response.setContent(template.getBytes());        return response;    }