code: public static IThymeleafRequestContext getRequestContext(final IExpressionContext context) {
          if (context == null) {
              return null;
          }
          return (IThymeleafRequestContext) context.getVariable(SpringContextVariableNames.THYMELEAF_REQUEST_CONTEXT);
      }
docs: <p>
  Get the {@link IThymeleafRequestContext} from the Thymeleaf context.
  </p>
  <p>
  The returned object is a wrapper on the Spring request context that hides the fact of this request
  context corresponding to a Spring WebMVC or Spring WebFlux application.
  </p>
  <p>
  This will be done by looking for a context variable called
  {@link SpringContextVariableNames#THYMELEAF_REQUEST_CONTEXT}.
  </p>
  
  @param context the context
  @return the thymeleaf request context