SessionContext context = this.getAuthenticationSessionContext(false);
if (context != null && logoutHandlerName != null) {
// remove context
context.removeXML(logoutHandlerName);
// FIXME (CZ): The sessionContextImpl should not be null, but
// it is sometimes. Why?
SessionContextImpl sessionContextImpl = (SessionContextImpl)
(this.getSessionManager().getContext(AuthenticationConstants.SESSION_CONTEXT_NAME));
if (sessionContextImpl != null) {