This should be overwritten by the copy of the document. The reason to use an ostream on the file is to get it into the manifest.