@Override
    protected AbstractMetadataResolver createMetadataResolver() throws Exception {
        if (metadataResource != null
            && metadataResource.exists()
            && metadataResource.isReadable()
            && metadataResource.isFile()) {
            try (val is = metadataResource.getInputStream()) {
                var document = Configuration.getParserPool().parse(is);
                return new DOMMetadataResolver(document.getDocumentElement());
            }
        }
        return null;
    }
Generates metadata object with standard values and overridden user defined values.

@author Misagh Moayyed
@since 4.0.1
pac4j-saml/src/main/java/org/pac4j/saml/metadata/SAML2FileSystemMetadataGenerator.java