ScreenRenderer screens = new ScreenRenderer(writer, null, foScreenRenderer);
screens.populateContextForRequest(request, response, servletContext);
screens.getContext().put("formStringRenderer", new FoFormRenderer(request, response));
screens.render(page);
} catch (Exception e) {
<BUG>throw createException("Problems with the response writer/output stream", e, request, response);

}</BUG>
Reader reader = new StringReader(writer.toString());
StreamSource src = new StreamSource(reader);

ScreenRenderer screens = new ScreenRenderer(writer, null, foScreenRenderer);
screens.populateContextForRequest(request, response, servletContext);
screens.getContext().put("formStringRenderer", new FoFormRenderer(request, response));
screens.render(page);
} catch (Exception e) {
renderError("Problems with the response writer/output stream", e, request, response);
return;
}
Reader reader = new StringReader(writer.toString());
StreamSource src = new StreamSource(reader);
