@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "surrogateComponentSerializationPlanConfigurer")
    public ComponentSerializationPlanConfigurer surrogateComponentSerializationPlanConfigurer() {
        return plan -> {
            plan.registerSerializableClass(SurrogateSessionExpirationPolicy.class);
            plan.registerSerializableClass(SurrogateRegisteredServiceAccessStrategy.class);
        };
    }
This is {@link SurrogateComponentSerializationConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-surrogate-authentication/src/main/java/org/apereo/cas/config/SurrogateComponentSerializationConfiguration.java