try {
ScreenRenderer screens = new ScreenRenderer(writer, null, foScreenRenderer);
screens.populateContextForRequest(request, response, servletContext);
// this is the object used to render forms from their definitions
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;
}