I am building an extension that will open files from a remote server, but need to add some metadata into each document opened, which I will use later when the document is saved/