public function setUri($uri)
    {
        if (!empty($uri) && !is_file($uri)) {
            throw new \Exception(sprintf('File %s not found.', $uri));
        }
        $this->uri = $uri;
        return $this;
    }