public function locateSource($url)
    {
        if (!$file = $this->getObject('template.locator.factory')->locate($url)) {
            throw new \InvalidArgumentException(sprintf('The template "%s" cannot be located.', $url));
        }

        return $file;
    }