public static String getServiceRequestHeaderIfAny(final WebContext context) {
        return context.getRequestHeader(CasProtocolConstants.PARAMETER_SERVICE)
            .or(() -> context.getRequestHeader("X-".concat(CasProtocolConstants.PARAMETER_SERVICE)))
            .orElse(StringUtils.EMPTY);
    }
Gets service request header if any.

@param context the context
@return the service request header if any
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/util/OAuth20Utils.java