public function openDownloadStream($id) { $file = $this->collectionWrapper->findFileById($id); if ($file === null) { throw FileNotFoundException::byId($id, $this->getFilesNamespace()); } return $this->openDownloadStreamByFile($file); }