public function media()
    {
        if (!$this->media instanceof MediaController) {
            $this->media = new MediaController($this->getClient(), $this->cachePolicy, $this->cache);
            $this->media->setLogger($this->logger);
        }

        return $this->media;
    }