@Override
    public boolean supports(final SamlRegisteredService service) {
        val metadataLocation = SpringExpressionLanguageValueResolver.getInstance().resolve(service.getMetadataLocation());
        val scriptFactoryInstance = ExecutableCompiledScriptFactory.findExecutableCompiledScriptFactory();
        return scriptFactoryInstance.isPresent() && scriptFactoryInstance.get().isExternalScript(metadataLocation);
    }
This is {@link GroovyResourceMetadataResolver}.

@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/GroovyResourceMetadataResolver.java