@Override
    public boolean supports(final SamlRegisteredService service) {
        if (service == null) {
            return false;
        }
        val metadataLocation = service.getMetadataLocation();
        return metadataLocation != null
               && (metadataLocation.trim().startsWith("git://")
                   || (metadataLocation.trim().startsWith("http") && metadataLocation.trim().endsWith(".git")));
    }
This is {@link GitSamlRegisteredServiceMetadataResolver}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-saml-idp-metadata-git/src/main/java/org/apereo/cas/support/saml/metadata/resolver/GitSamlRegisteredServiceMetadataResolver.java