public function start(Request $request, AuthenticationException $authException = null)
    {
        // AJAX request?
        if ($request->isXmlHttpRequest()) {
            return new JsonResponse('', Response::HTTP_UNAUTHORIZED);
        }

        return new RedirectResponse($this->router->generate('fos_user_security_login'));
    }