@Override
    public MetadataResolver resolve(final boolean force) {
        if (metadataResolver == null) {
            try {
                metadataResolver = new SAML2EntityDescriptorMetadataResolver(entityDescriptorElement);
                metadataResolver.initialize();
            } catch (Exception e) {
                throw new SAMLException("Unable to initialize metadata resolver for " + entityDescriptorElement.getEntityID(), e);
            }
        }
        return metadataResolver;
    }
A metadata resolver that delegates to an existing one.
@author Misagh Moayyed
@since 6.1.2
pac4j-saml/src/main/java/org/pac4j/saml/metadata/SAML2DelegatingMetadataResolver.java