@Override
public void sessionDestroyed(HttpSessionEvent event) {
if (!getSessionContext().isActive()) {
HttpSessionDestructionContext context = getHttpSessionDestructionContext();
context.associate(event.getSession());
context.activate();
}
}
private HttpSessionContext getSessionContext() {