@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @ConditionalOnMissingBean(name = "descendantTicketsLogoutPostProcessor")
        public LogoutPostProcessor descendantTicketsLogoutPostProcessor(
            @Qualifier(TicketTrackingPolicy.BEAN_NAME_DESCENDANT_TICKET_TRACKING)
            final TicketTrackingPolicy descendantTicketsTrackingPolicy,
            final ConfigurableApplicationContext applicationContext,
            final CasConfigurationProperties casProperties,
            @Qualifier(TicketRegistry.BEAN_NAME)
            final TicketRegistry ticketRegistry) {
            return BeanSupplier.of(LogoutPostProcessor.class)
                .when(BeanCondition.on("cas.ticket.track-descendant-tickets").isTrue()
                .given(applicationContext.getEnvironment()))
                .supply(() -> new DescendantTicketsLogoutPostProcessor(ticketRegistry, descendantTicketsTrackingPolicy))
                .otherwiseProxy()
                .get();
        }
This is {@link CasCoreLogoutAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
core/cas-server-core-logout/src/main/java/org/apereo/cas/config/CasCoreLogoutAutoConfiguration.java