authRequest.setDetails(request.getRemoteAddr());
setDetails(request, authRequest);
    public Authentication attemptAuthentication(HttpServletRequest request)        throws AuthenticationException {        String username = request.getParameter(ACEGI_SECURITY_FORM_USERNAME_KEY);        String password = request.getParameter(ACEGI_SECURITY_FORM_PASSWORD_KEY);        if (username == null) {            username = "";        }        if (password == null) {            password = "";        }        UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(username,                password);        authRequest.setDetails(request.getRemoteAddr());        return this.getAuthenticationManager().authenticate(authRequest);    }