Update AuthenticationResolver.java