private PropertySource<Map<String, Object>> loadSettingsFromStandaloneConfigFile(
        final Environment environment, final File configFile) {
        val configurationLoaders = CasConfigurationPropertiesSourceLocator.getConfigurationPropertiesLoaders();
        val resource = new FileSystemResource(configFile);
        val foundLoader = configurationLoaders
            .stream()
            .filter(loader -> loader.supports(resource))
            .findFirst()
            .orElseThrow();

        return foundLoader.load(resource, environment, "standaloneConfigurationFileProperties", casConfigurationCipherExecutor);
    }
This is {@link StandaloneConfigurationFilePropertiesSourceLocator}.

@author Misagh Moayyed
@since 6.5.0
core/cas-server-core-configuration-api/src/main/java/org/apereo/cas/configuration/StandaloneConfigurationFilePropertiesSourceLocator.java