@Override
    public void environmentPrepared(final ConfigurableBootstrapContext bootstrapContext,
                                    final ConfigurableEnvironment environment) {
        val nativeSources = CasConfigurationPropertiesEnvironmentManager.configureEnvironmentPropertySources(environment);
        val configurationCipher = new CasConfigurationJasyptCipherExecutor(environment);
        val casConfigLocator = new DefaultCasConfigurationPropertiesSourceLocator(configurationCipher);
        val standaloneLocator = new StandaloneConfigurationFilePropertiesSourceLocator(configurationCipher);
        val resourceLoader = new DefaultResourceLoader();
        casConfigLocator.locate(environment, resourceLoader).ifPresent(nativeSources::addPropertySource);
        standaloneLocator.locate(environment, resourceLoader).ifPresent(nativeSources::addPropertySource);
        environment.getPropertySources().addFirst(nativeSources);
    }
This is {@link CasNativeApplicationRunListener}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-native/src/main/java/org/apereo/cas/nativex/CasNativeApplicationRunListener.java