function getViewModel ()
  {
    if (isset($this->shadowViewModel))
      return $this->shadowViewModel;
    /** @var DocumentFragment $shadowDOM */
    $shadowDOM = $this->getShadowDOM ();
    return $shadowDOM
      ? $shadowDOM->getDataBinder ()->getViewModel ()
      : null;
  }