@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public TicketStatusResource ticketStatusResource(
            @Qualifier(TicketRegistry.BEAN_NAME) final TicketRegistry ticketRegistry) {
            return new TicketStatusResource(ticketRegistry);
        }
This is {@link CasRestAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-rest/src/main/java/org/apereo/cas/config/CasRestAutoConfiguration.java