closeSessionOrDeregisterUsageOnExisting();
}
private synchronized void closeSessionOrDeregisterUsageOnExisting() {
final AuthenticatedWebSessionForIsis webSession = (AuthenticatedWebSessionForIsis) Session.get();
final boolean shouldClose = webSession.deregisterUseByThread();
final IsisSession isisSession = sessionMap.get(webSession);
if (isisSession == null) {
// nothing to be done
return;