/**
  * @inheritdoc
  */
 public function find_renderer($class)
 {
     if ($this instanceof $class) {
         return $this;
     }
     if ($this->template_resolver instanceof $class) {
         return $this->template_resolver;
     }
     if ($this->template_resolver instanceof TemplateResolverDecorator) {
         return $this->template_resolver->find_renderer($class);
     }
     return null;
 }