Source:
public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException { try { AuthenticationContext context; AuthenticationRequestCacheEntry authRequest = null; String sessionDataKey = request.getParameter("sessionDataKey"); boolean returning = false; if (request.getParameter("type") != null) { if (sessionDataKey != null) { log.debug("retrieving authentication request from cache.."); authRequest = (AuthenticationRequestCacheEntry) AuthenticationRequestCache .getInstance(0).getValueFromCache(sessionDataKey); } else if (request.getParameter(FrameworkConstants.LOGOUT) == null || !"true".equals(request.getParameter(FrameworkConstants.LOGOUT))) { if (log.isDebugEnabled()) { log.debug("Session data key is null in the request and not a logout request."); } FrameworkUtils.sendToRetryPage(request, response); } if (authRequest != null) { request = FrameworkUtils.getCommonAuthReqWithParams(request, authRequest); } context = initializeFlow(request, response); } else { returning = true; context = FrameworkUtils.getContextData(request); } if (context != null) { context.setReturning(returning); if (!context.isReturning() && authRequest != null) { context.setAuthenticationRequest(authRequest.getAuthenticationRequest()); } if (!context.isLogoutRequest()) { FrameworkUtils.getAuthenticationRequestHandler().handle(request, response, context); } else { FrameworkUtils.getLogoutRequestHandler().handle(request, response, context); } } else { if (log.isDebugEnabled()) { String key = request.getParameter("sessionDataKey"); if (key == null) { log.debug("Session data key is null in the request"); } else { log.debug("Session data key : " + key); } } log.error("Context does not exist. Probably due to invalidated cache"); FrameworkUtils.sendToRetryPage(request, response); } } catch (Throwable e) { log.error("Exception in Authentication Framework", e); FrameworkUtils.sendToRetryPage(request, response); } }

Target:
public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException { try { AuthenticationContext context; AuthenticationRequestCacheEntry authRequest = null; String sessionDataKey = request.getParameter("sessionDataKey"); boolean returning = false; if (request.getParameter("type") != null) { if (sessionDataKey != null) { log.debug("retrieving authentication request from cache.."); authRequest = FrameworkUtils.getAuthenticationRequestFromCache(sessionDataKey); } else if (!Boolean.parseBoolean(request.getParameter(FrameworkConstants.LOGOUT))) { if (log.isDebugEnabled()) { log.debug("Session data key is null in the request and not a logout request."); } FrameworkUtils.sendToRetryPage(request, response); } if (authRequest != null) { request = FrameworkUtils.getCommonAuthReqWithParams(request, authRequest); FrameworkUtils.removeAuthenticationRequestFromCache(sessionDataKey); } context = initializeFlow(request, response); } else { returning = true; context = FrameworkUtils.getContextData(request); } if (context != null) { context.setReturning(returning); if (!context.isReturning() && authRequest != null) { context.setAuthenticationRequest(authRequest.getAuthenticationRequest()); } if (!context.isLogoutRequest()) { FrameworkUtils.getAuthenticationRequestHandler().handle(request, response, context); } else { FrameworkUtils.getLogoutRequestHandler().handle(request, response, context); } } else { if (log.isDebugEnabled()) { String key = request.getParameter("sessionDataKey"); if (key == null) { log.debug("Session data key is null in the request"); } else { log.debug("Session data key : " + key); } } log.error("Context does not exist. Probably due to invalidated cache"); FrameworkUtils.sendToRetryPage(request, response); } } catch (Throwable e) { log.error("Exception in Authentication Framework", e); FrameworkUtils.sendToRetryPage(request, response); } }