@Bean
    public MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter(
        final ConfigurableApplicationContext applicationContext) {
        val serializer = new RegisteredServiceJsonSerializer(applicationContext);
        return new MappingJackson2HttpMessageConverter(serializer.getObjectMapper());
    }
This is {@link CasRestServicesAutoConfiguration}.

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