Remove dependency of Manager.addFile() to get the document object.