@Override
    public boolean isAvailable(final SamlRegisteredService service) {
        if (supports(service)) {
            val rest = samlIdPProperties.getMetadata().getRest();
            val status = HttpRequestUtils.pingUrl(rest.getUrl());
            return !status.isError();
        }
        return false;
    }
This is {@link RestfulSamlRegisteredServiceMetadataResolver}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-saml-idp-metadata-rest/src/main/java/org/apereo/cas/support/saml/metadata/resolver/RestfulSamlRegisteredServiceMetadataResolver.java