docs: public DeploymentInfo addFirstAuthenticationMechanism(final String name, final AuthenticationMechanism mechanism) {
          authenticationMechanisms.put(name, new ImmediateAuthenticationMechanismFactory(mechanism));
          if(loginConfig == null) {
              loginConfig = new LoginConfig(null);
          }
          loginConfig.addFirstAuthMethod(new AuthMethodConfig(name));
          return this;
      }