{
@Bean
public ContextObjectSerializerRegistry contextObjectSerializerRegistry()
{
// Note that we may we must define the serializers below as beans in order to make them @autowire-capable
ContextObjectSerializerRegistry registry = new ContextObjectSerializerRegistry();
registry.addSerializer(persistenceContextObjectSerializer());
registry.addSerializer(xStreamContextObjectSerializer());
registry.addSerializer(javaSerializationContextObjectSerializer());
return registry;
}