Add the MetadataWriter class