private AbstractMetadataResolver getMetadataResolver(final AbstractResource metadataResource,
                                                         final File metadataFile) throws Exception {
        if (metadataFile.isDirectory()) {
            val sourceStrategy = new DefaultLocalDynamicSourceKeyGenerator(StringUtils.EMPTY, ".xml", StringUtils.EMPTY);
            val manager = new FilesystemLoadSaveManager<>(metadataFile, configBean.getParserPool());
            return new LocalDynamicMetadataResolver(manager, sourceStrategy);
        }
        return new InMemoryResourceMetadataResolver(metadataResource, configBean);
    }
This is {@link FileSystemResourceMetadataResolver}.

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