protected function doInit() {
    if ($this->loadWith === self::JAVASCRIPT) {
      jQuery::widget($this->html, $this->widgetName, (array) $this->widgetOptions);
    } else {
      $this->html
        ->setAttribute('data-widget', $this->widgetName)
        ->setAttribute('data-widget-options', $this->getJSONConverter()->stringify((object) $this->widgetOptions))
        ->addClass('widget-not-initialized')
      ;
    }
  }