code: @Override
  	public AuthenticationManager getAuthenticationManager() {
          if(ValkyrieRepository.getInstance().getApplicationConfig().applicationContext().getBeansOfType(AuthenticationManager.class).size() != 0)
  		    return ValkyrieRepository.getInstance().getBean(AuthenticationManager.class);
          else {
              return null;
          }
  
  	}
docs: Get the authentication manager in use.
  
  @return authenticationManager instance used for authentication requests