protected function gridFindOne($name)
    {
        try {
            $params = ['filename' => $name];
            $obj = $this->gridFS->findOne($params);
        } catch (ConnectionTimeoutException $ex) {
            throw new ConnectionTimeoutException($ex);
        } catch (\Exception $ex) {
            throw new NotFoundException('Could not find file "' . $name . '": ' . $ex->getMessage());
        }

        return $obj;
    }