@Override
    public boolean isAvailable(final SamlRegisteredService service) {
        return supports(service) && mongoTemplate.collectionExists(this.collectionName);
    }
This is {@link MongoDbSamlRegisteredServiceMetadataResolver}.

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