code: protected boolean isGatewayPresent(final RequestContext context) {
          val requestParameterMap = context.getExternalContext().getRequestParameterMap();
          return StringUtils.hasText(requestParameterMap.get(CasProtocolConstants.PARAMETER_GATEWAY));
      }
docs: Checks if {@code gateway} is present in the request params.
  
  @param context the context
  @return true, if gateway present