@Override
    public boolean supports(final SamlRegisteredService service) {
        try {
            val metadataLocations = getMetadataLocationsForService(service, new CriteriaSet());
            return metadataLocations
                .stream()
                .anyMatch(metadataLocation ->
                    StringUtils.isNotBlank(metadataLocation)
                        && StringUtils.startsWith(metadataLocation, "http")
                        && !SamlUtils.isDynamicMetadataQueryConfigured(metadataLocation));
        } catch (final Exception e) {
            LOGGER.trace(e.getMessage(), e);
        }
        return false;
    }
This is {@link UrlResourceMetadataResolver}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-saml-idp-metadata/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/cache/resolver/UrlResourceMetadataResolver.java