public function getSourceContext($name)
 {
     if ($this->loader instanceof \Twig_SourceContextLoaderInterface) {
         $source = $this->loader->getSourceContext($name);
     } else {
         if ($this->loader instanceof \Twig_ExistsLoaderInterface && !$this->loader->exists($name)) {
             throw new \Twig_Error_Loader(sprintf('Template "%s" is not defined.', $name));
         }
         $source = new \Twig_Source($this->loader->getSource($name), $name);
     }
     return new \Twig_Source($this->parser->parse($source->getCode(), ['filename' => $name]), $source->getName(), $source->getPath());
 }