Using Agent as parameterized type for the AuthenticationManager injection point