/* (non-Javadoc)
  * @see org.springframework.security.web.authentication.AuthenticationFailureHandler#onAuthenticationFailure(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.springframework.security.core.AuthenticationException)
  */
 @Override
 public void onAuthenticationFailure(
     HttpServletRequest request, HttpServletResponse response, AuthenticationException exception)
     throws IOException, ServletException {
   RequestSessionMap.getCurrent(request).put("signinError", true);
   response.sendRedirect(response.encodeRedirectURL(request.getContextPath() + "/user/signin"));
 }