code: private static String getRequestBody(final HttpServletRequest request) {
          val body = readRequestBodyIfAny(request);
          if (!StringUtils.hasText(body)) {
              LOGGER.trace("Looking at the request attribute [{}] to locate SAML request body", SamlProtocolConstants.PARAMETER_SAML_REQUEST);
              return (String) request.getAttribute(SamlProtocolConstants.PARAMETER_SAML_REQUEST);
          }
          return body;
      }
docs: Gets the request body from the request.
  
  @param request the request
  @return the request body