@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @ConditionalOnMissingBean(name = "proxyGrantingTicketIouMessageSanitationContributor")
        public MessageSanitationContributor proxyGrantingTicketIouMessageSanitationContributor() {
            return () -> List.of(ProxyGrantingTicket.PROXY_GRANTING_TICKET_IOU_PREFIX);
        }
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