/**
  * Show cms explorer
  */
 protected function dShowCmsExplorer(ilExplorer $localExplorer)
 {
     global $tree;
     include_once './Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
     include_once './Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingCmsExplorer.php';
     include_once './Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
     $explorer = new ilECSNodeMappingCmsExplorer($this->ctrl->getLinkTarget($this, 'dEditTree'), $this->getServer()->getServerId(), $this->getMid(), (int) $_REQUEST['tid']);
     $explorer->setRoot(ilECSCmsTree::lookupRootId((int) $_REQUEST['tid']));
     $explorer->setTree(new ilECSCmsTree((int) $_REQUEST['tid']));
     $explorer->setPostVar('rnodes[]');
     // Read checked items from mapping of checked items in local explorer
     $active_node = $tree->getRootId();
     foreach ($localExplorer->getCheckedItems() as $ref_id) {
         $explorer->setCheckedItems(ilECSNodeMappingAssignments::lookupMappedItemsForRefId($this->getServer()->getServerId(), $this->getMid(), (int) $_REQUEST['tid'], $ref_id));
         $active_node = $ref_id;
     }
     include_once './Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
     include_once './Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
     $cmsTree = new ilECSCmsTree((int) $_REQUEST['tid']);
     foreach (ilECSNodeMappingAssignments::lookupAssignmentsByRefId($this->getServer()->getServerId(), $this->getMid(), (int) $_REQUEST['tid'], $active_node) as $cs_id) {
         foreach ($cmsTree->getPathId($cs_id) as $path_id) {
             #$explorer->setExpand($path_id);
         }
     }
     $explorer->setTargetGet('rref_id');
     $explorer->setSessionExpandVariable('rexpand');
     $explorer->setExpand((int) $_GET['rexpand']);
     $explorer->setExpandTarget($this->ctrl->getLinkTarget($this, 'dEditTree'));
     $explorer->setOutput(0);
     $GLOBALS['tpl']->setVariable('REMOTE_EXPLORER', $explorer->getOutput());
 }