if (exitEvent != null) {
handleExit(exitEvent, xFormsSession, session, request, response);
} else {
//todo: review: the following may be substituted with the ViewServlet
response.setContentType(HTML_CONTENT_TYPE);
UIGenerator uiGenerator = createUIGenerator(request, xFormsSession, actionURL, xslFile == null ? xsltDefault : xslFile, javascriptPresent);
uiGenerator.setInput(adapter.getXForms());
uiGenerator.setOutput(response.getOutputStream());
uiGenerator.generate();
//store WebAdapter in XFormsSession
xFormsSession.setAdapter(adapter);
//store UIGenerator in XFormsSession as property
xFormsSession.setProperty(XFormsSession.UIGENERATOR, uiGenerator);