code: protected function _setRenderer($renderer)
      {
          if ($renderer !== null && !($renderer instanceof TemplateInterface)) {
              throw $this->_createInvalidArgumentException(
                  $this->__('Invalid template'),
                  null,
                  null,
                  $renderer
              );
          }
  
          $this->_setRendererOriginal($renderer);
      }
docs: {@inheritdoc}
  
  The renderer must be a template.
  
  @since [*next-version*]