@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @ConditionalOnMissingBean(name = "ticketCatalogMessageSanitationContributor")
        public MessageSanitationContributor defaultMessageSanitationContributor(
            @Qualifier(TicketCatalog.BEAN_NAME) final ObjectProvider<TicketCatalog> ticketCatalog) {
            return new TicketCatalogMessageSanitationContributor(ticketCatalog);
        }
Create casBeanValidationPostProcessor bean.
Note that {@code BeanPostProcessor} beans should be static.

@return the BeanValidationPostProcessor
core/cas-server-core-util/src/main/java/org/apereo/cas/config/CasCoreUtilConfiguration.java