@Override
	public AuthenticationManager getAuthenticationManager() {
        if(ValkyrieRepository.getInstance().getApplicationConfig().applicationContext().getBeansOfType(AuthenticationManager.class).size() != 0)
		    return ValkyrieRepository.getInstance().getBean(AuthenticationManager.class);
        else {
            return null;
        }

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

@return authenticationManager instance used for authentication requests