final IUserInstanceManager userInstanceManager = UserInstanceManagerLocator.getUserInstanceManager();
final IUserInstance userInstance = userInstanceManager.getUserInstance(writableRequest);
// fire away
final IPortalRenderingPipeline portalRenderingPipeline = PortalRenderingPipelineLocator.getPortalRenderingPipeline();
portalRenderingPipeline.renderState(writableRequest, res, userInstance);
}
catch (Exception e) {
ExceptionHelper.genericTopHandler(Errors.bug, e);
ExceptionHelper.generateErrorPage(res, e);
return;