public function getTemplate($name)
    {
        if (!$this->hasTemplate($name)) {
            throw new \RuntimeException("Template with name \"".$name."\" is not exist");
        }

        $filename = $this->templateMap[$name];

        if (!file_exists($filename)) {
            throw new \RuntimeException("Invalid template filename with name \"".$name."\"");
        }

        return $filename;
    }