NodeShapeSerializer.Write Method