Encapsulated serializer