Modify XmlSerializerExtension logic