protected function convertButtons() {
    $buttons = array();
    $snippets = array();
    
    if (isset($this->assignedValues)) {
      foreach ($this->assignedValues as $item) {
        if ($item instanceof \Psc\UI\ButtonInterface) {
          $button = $item;
        } elseif ($item instanceof \Psc\CMS\Entity) {
          $button = $this->entityMeta->getAdapter($item)
            ->setButtonMode(Buttonable::CLICK | Buttonable::DRAG) 
            ->getDropBoxButton();
        } else {
          throw new \InvalidArgumentException(Code::varInfo($item).' kann nicht in einen Button umgewandelt werden');
        }
        
        
        if ($button instanceof \Psc\JS\JooseSnippetWidget) {
          $button->disableAutoLoad();
          
          // das bevor getJooseSnippet() machen damit widgetSelector im snippet geht
          // aber NACH disableAutoLoad()
          $button->html()->addClass('assigned-item');
          
          $snippets[] = $button->getJooseSnippet();
        } else {
          $button->html()->addClass('assigned-item');
          
        }
      
        $buttons[] = $button;
      }
    }
    
    return array($buttons, $snippets);
  }