public function loadExtends($template)
{
try {
return $this->loader->load($template, static::NAME);
} catch (\Exception $e) {
throw new \RuntimeException(sprintf('error extending %s (%s) from %s line %d', var_export($template, true), $e->getMessage(), static::NAME, $this->getLineTrace($e)));
}
}