code: private boolean appHasWebXMLFormLogin(WebRequest webRequest) {
          return webRequest.getFormLoginConfiguration() != null &&
                 webRequest.getFormLoginConfiguration().getLoginPage() != null &&
                 webRequest.getFormLoginConfiguration().getErrorPage() != null;
      }
docs: Determines if the application has a FORM login configuration in
  its web.xml
  
  @param webRequest
  @return {@code true} if the application's web.xml has a valid form login configuration.