@ConditionalOnMissingBean(name = ConsentActivationStrategy.BEAN_NAME)
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public ConsentActivationStrategy consentActivationStrategy(
            @Qualifier(ConsentEngine.BEAN_NAME)
            final ConsentEngine consentEngine,
            final CasConfigurationProperties casProperties) {
            val location = casProperties.getConsent().getActivationStrategyGroovyScript().getLocation();
            if (location != null && CasRuntimeHintsRegistrar.notInNativeImage()) {
                return new GroovyConsentActivationStrategy(location, consentEngine, casProperties);
            }
            return new DefaultConsentActivationStrategy(consentEngine, casProperties);
        }
This is {@link CasConsentCoreAutoConfiguration}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-consent-core/src/main/java/org/apereo/cas/config/CasConsentCoreAutoConfiguration.java