docs: protected void processLoginConfig(LoginConfig loginConfig) {
          boolean authMethodDefaulted = false;
          if (loginConfig != null) {
              String authenticationMethod = loginConfig.getAuthMethod();
              if (authenticationMethod != null) {
                  Map<String, ConfigItem<String>> authMethodMap = configurator.getConfigItemMap(AUTH_METHOD_KEY);
                  ConfigItem<String> existingAuthMethod = authMethodMap.get(LOGIN_CONFIG_KEY);
                  if (existingAuthMethod == null) {
                      authMethodMap.put(LOGIN_CONFIG_KEY, configurator.createConfigItem(authenticationMethod));
                  } else {
                      this.configurator.validateDuplicateConfiguration(LOGIN_CONFIG_KEY, AUTH_METHOD_KEY, authenticationMethod, existingAuthMethod);
                  }
              } else {
                  //Default to BASIC
                  authenticationMethod = LoginConfiguration.BASIC;
                  authMethodDefaulted = true;
              }
  
              String realmName = loginConfig.getRealmName();
              if (realmName != null) {
                  Map<String, ConfigItem<String>> realmNameMap = configurator.getConfigItemMap(REALM_NAME_KEY);
                  ConfigItem<String> existingRealmName = realmNameMap.get(LOGIN_CONFIG_KEY);
                  if (existingRealmName == null) {
                      realmNameMap.put(LOGIN_CONFIG_KEY, configurator.createConfigItem(realmName));
                  } else {
                      this.configurator.validateDuplicateConfiguration(LOGIN_CONFIG_KEY, REALM_NAME_KEY, realmName, existingRealmName);
                  }
              }
  
              FormLoginConfig formLoginConfig = loginConfig.getFormLoginConfig();
              FormLoginConfiguration formLoginConfiguration = null;
              if (formLoginConfig != null) {
                  Map<String, ConfigItem<FormLoginConfig>> formLoginConfigMap = configurator.getConfigItemMap(FORM_LOGIN_CONFIG_KEY);
                  ConfigItem<FormLoginConfig> existingFormLoginConfig = formLoginConfigMap.get(LOGIN_CONFIG_KEY);
                  if (existingFormLoginConfig == null) {
                      formLoginConfigMap.put(LOGIN_CONFIG_KEY, configurator.createConfigItem(loginConfig.getFormLoginConfig()));
  
                      formLoginConfiguration = createFormLoginConfiguration(loginConfig);
                  } else {
                      this.configurator.validateDuplicateConfiguration(LOGIN_CONFIG_KEY, FORM_LOGIN_CONFIG_KEY, formLoginConfig,
                                                                       existingFormLoginConfig);
                  }
              }
              LoginConfigurationImpl lci = new LoginConfigurationImpl(authenticationMethod, realmName, formLoginConfiguration);
              if (authMethodDefaulted) {
                  lci.setAuthenticationMethodDefaulted();
              }
              loginConfiguration = lci;
  
          }
      }