}
protected void processTheView(final RequestContext context) throws IOException {
IsisTransactionManager transactionManager = IsisContext.getPersistenceSession().getTransactionManager();
if (transactionManager.getTransaction().getState().canFlush()) {
transactionManager.flushTransaction();
}
processView(context);
// Note - the session will have changed since the earlier call if a user has logged in or out in the action
// processing above.
transactionManager = IsisContext.getPersistenceSession().getTransactionManager();