Works with jms_serializer >= 0.10