protected WebBasedRegisteredService getRegisteredServiceFromRequest(final RequestContext requestContext) {
        val currentService = WebUtils.getService(requestContext);
        return (WebBasedRegisteredService) this.servicesManager.findServiceBy(currentService);
    }
Gets registered service from request.

@param requestContext the request context
@return the registered service from request
support/cas-server-support-saml-mdui/src/main/java/org/apereo/cas/support/saml/mdui/web/flow/SamlMetadataUIParserAction.java