protected RegisteredService getRegisteredServiceForConsent(final RequestContext requestContext, final Service service) {
        return FunctionUtils.doUnchecked(() -> {
            val serviceToUse = authenticationRequestServiceSelectionStrategies.resolveService(service);
            val registeredService = this.servicesManager.findServiceBy(serviceToUse);
            RegisteredServiceAccessStrategyUtils.ensureServiceAccessIsAllowed(service, registeredService);
            return registeredService;
        });
    }
Gets registered service for consent.

@param requestContext the request context
@param service        the service
@return the registered service for consent
support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/web/flow/AbstractConsentAction.java