public static WebApplicationService getService(final List<ArgumentExtractor> argumentExtractors, final HttpServletRequest request) {
        return argumentExtractors
            .stream()
            .map(argumentExtractor -> argumentExtractor.extractService(request))
            .filter(Objects::nonNull)
            .findFirst()
            .orElse(null);
    }
Gets the service from the request based on given extractors.

@param argumentExtractors the argument extractors
@param request            the request
@return the service, or null.
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/HttpRequestUtils.java