public function display($template, array $vars = array())
    {
        if (null === ($path = $this->locator->locate($template))) {
            throw TemplateNotFoundException::format(
                'The template "%s" does not exist.',
                $template
            );
        }

        $this->renderInScope(
            $path,
            array_replace($this->getArrayCopy(), $vars)
        );
    }