synchronized (sessionsByThread) {
applySessionClosePolicy();
final IsisSession session = getSessionFactoryInstance().openSession(authenticationSession);
LOG.debug(" opening session " + session + " (count " + sessionsByThread.size() + ") for " + authenticationSession.getUserName());
saveSession(thread, session);
session.open();
return session;
}
}
protected IsisSession createAndOpenSession(final Thread thread, final AuthenticationSession authenticationSession) {