@Override
    public Optional<PropertySource<?>> locate(final Environment environment, final ResourceLoader resourceLoader) {
        val compositePropertySource = new CompositePropertySource(getClass().getSimpleName());
        val configFile = CasConfigurationPropertiesSourceLocator.getStandaloneProfileConfigurationFile(environment);
        if (configFile != null) {
            LOGGER.info("Loading standalone configuration properties from [{}]", configFile);
            val sourceStandalone = loadSettingsFromStandaloneConfigFile(environment, configFile);
            compositePropertySource.addPropertySource(sourceStandalone);
            return Optional.of(compositePropertySource);
        }
        LOGGER.info("No standalone configuration properties are available");
        return Optional.empty();
    }
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