public function getPartialFile($name)
    {
        $file = $this->findPartialFile($name);

        if (is_file($file)) {
            return $file;

        } else if ($this->hasStaticPartial($name)) {
            return $this->getStaticFile($name);

        } else {
            throw new LogicException(sprintf('Could not find a registered partial called %s', $name));
        }
    }