Writing transformer for metadata