throws IOException, ServletException {
HttpServletRequest httpReq= (HttpServletRequest) req;
HttpServletResponse httpRes= (HttpServletResponse) res;
SingleSignOutHandler handler = getHandler();
// check for sign out request from cas server
if (handler.isLogoutRequest(httpReq)) {
if (singleSignOut) { // do we participate
LOGGER.info("Single Sign Out received from CAS server --> starting log out");
handler.destroySession(httpReq);
LogoutFilterChain logOutChain = (LogoutFilterChain)
getSecurityManager().getSecurityConfig().getFilterChain().getRequestChainByName("webLogout");
logOutChain.doLogout(getSecurityManager(), httpReq, httpRes,getName());
} else
LOGGER.info("Single Sign Out received from CAS server --> ignoring");