public function findFile($name, $relative = true)
    {
        if ($this->refFindTemplate === null) {
            $this->refFindTemplate = new ReflectionMethod('Twig_Loader_Filesystem', 'findTemplate');
            $this->refFindTemplate->setAccessible(true);
        }

        $name = $this->prepareName($name);
        $path = $this->refFindTemplate->invoke($this->fsloader, $name);
        return $relative ? ltrim(str_replace($this->basePath, '', $path), DIRECTORY_SEPARATOR) : $path;
    }