I think this part is useless. 
The filepicker code is called when a user wants to upload or update a document. In this case it's the uploadFragment and associated loaders which are responsible to update / create the document.