@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @ConditionalOnMissingBean(name = "umaComponentSerializationPlanConfigurer")
        public ComponentSerializationPlanConfigurer umaComponentSerializationPlanConfigurer() {
            return plan -> {
                plan.registerSerializableClass(DefaultUmaPermissionTicket.class);
                plan.registerSerializableClass(ResourceSet.class);
                plan.registerSerializableClass(ResourceSetPolicy.class);
                plan.registerSerializableClass(ResourceSetPolicyPermission.class);
            };
        }
This is {@link CasOAuthUmaAutoConfiguration}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-oauth-uma/src/main/java/org/apereo/cas/config/CasOAuthUmaAutoConfiguration.java