</BUG>
ScreenRenderer.populateContextForRequest(templateMap, null, request, response, servletContext);
templateMap.put("formStringRenderer", new HtmlFormRenderer(request, response));
ServletContext ctx = (ServletContext) request.getAttribute("servletContext");
<BUG>RequestHandler rh = (RequestHandler) ctx.getAttribute("_REQUEST_HANDLER_");
String contextLinkPrefix = rh.makeLink(request, response, "", true, false, true);
templateMap.put("_CONTEXT_LINK_PREFIX_", contextLinkPrefix);</BUG>
Writer writer;
try {
boolean useOutputStreamNotWriter = false;

} catch (GeneralException e) {
Debug.logError(e, module);
throw new GeneralRuntimeException(e.getMessage(), e);
}
if (websiteOk) {
MapStack<String> templateMap = MapStack.create();
ScreenRenderer.populateContextForRequest(templateMap, null, request, response, servletContext);
templateMap.put("formStringRenderer", new HtmlFormRenderer(request, response));
ServletContext ctx = (ServletContext) request.getAttribute("servletContext");
RequestHandler rh = (RequestHandler) ctx.getAttribute("_REQUEST_HANDLER_");
templateMap.put("_REQUEST_HANDLER_", rh);
Writer writer;
try {
boolean useOutputStreamNotWriter = false;
