docs: protected boolean isXhrRequest(final HttpServletRequest request) {
          if (StringUtils.hasText(request.getHeader(X_REQUESTED_WITH))) {
              //the X-Requested-With header is present. This is a XHR request
              return true;
          }
          String accessControlRequestHeaders = request.getHeader(ACCESS_CONTROL_REQUEST_HEADERS);
          //One of the requested headers is X-Requested-With so we treat is as XHR request
          return StringUtils.hasText(accessControlRequestHeaders) && containsHeader(accessControlRequestHeaders, X_REQUESTED_WITH);
  
      }