code: private FormLoginConfiguration createFormLoginConfiguration(LoginConfig loginConfig) {
          FormLoginConfiguration formLoginConfiguration = null;
          FormLoginConfig formLoginConfig = loginConfig.getFormLoginConfig();
          if (formLoginConfig != null) {
              String loginPage = formLoginConfig.getFormLoginPage();
              String errorPage = formLoginConfig.getFormErrorPage();
              formLoginConfiguration = new FormLoginConfigurationImpl(loginPage, errorPage);
          }
          return formLoginConfiguration;
      }
docs: Creates a form login configuration object that represents a form-login-config element in web.xml and/or web-fragment.xml files.
  
  @param loginConfig the login-config element
  @return the security code's representation of a login configuration