code: protected RegisteredService getRegisteredServiceForConsent(final RequestContext requestContext, final Service service) {
          val serviceToUse = this.authenticationRequestServiceSelectionStrategies.resolveService(service);
          val registeredService = this.servicesManager.findServiceBy(serviceToUse);
          RegisteredServiceAccessStrategyUtils.ensureServiceAccessIsAllowed(service, registeredService);
          return registeredService;
      }
docs: Gets registered service for consent.
  
  @param requestContext the request context
  @param service        the service
  @return the registered service for consent