if (JetWebEngineLoader.unavailable()) {
ServletContext servletContext = (ServletContext) model.get(ServletActionContext.SERVLET_CONTEXT);
JetWebEngineLoader.setServletContext(servletContext);
}
JetContext context = new JetWebContext(request, response, null);
context.put("action", ai.getAction());
context.put("valueStack", model);
JetTemplate template = JetWebEngineLoader.getJetEngine().getTemplate(location);
template.render(context, response.getOutputStream());
}