code: protected LoginContext createLoginContext(Subject subject, CallbackHandler handler, DefaultLoginResult loginResult)
              throws LoginException {
          return new ResultAwareLoginContext(name, subject, handler, configuration, loginResult);
      }
docs: For login context providers that can abstract their tokens into a subject and a CallbackHandler
  that understands their token, this is a utility method that can be called to construct a create login.
  
  
  @param subject the subject that has been created for the user, or <code>null</code> if none has been created.
  @param handler the callback handler that can understand
  @param loginResult the login result object capturing the result of the login call.
  @return a login context
  @throws LoginException when a login context cannot be created