/**
  * Get the public key of the current instance
  *
  * @return string
  */
 public function getInstancePublicKey()
 {
     if ($this->instance === NULL || $this->instance->getPublicKey() === "") {
         return FALSE;
     }
     return $this->instance->getPublicKey();
 }
 /**
  * Convert DB-Row to Instance-Object
  *
  * @param array $row
  * @param tx_caretaker_AbstractNode $parent
  * @return tx_caretaker_InstanceNode
  */
 private function dbrow2instance($row, $parent = false)
 {
     // check access
     if (TYPO3_MODE == 'FE') {
         if ($GLOBALS['TSFE']->sys_page) {
             $result = $GLOBALS['TSFE']->sys_page->checkRecord('tx_caretaker_instance', $row['uid']);
         } else {
             // implement check in eID mode here
             $result = true;
         }
         if (!$result) {
             return false;
         }
     }
     // find parent node if it was not already handed over
     if ($parent == false) {
         if (intval($row['instancegroup']) > 0) {
             $parent = $this->getInstancegroupByUid($row['instancegroup'], false);
         } else {
             $parent = $this->getRootNode();
         }
     }
     // create Node
     $instance = new tx_caretaker_InstanceNode($row['uid'], $row['title'], $parent, $row['url'], $row['host'], $row['public_key'], $row['hidden']);
     if ($row['description']) {
         $instance->setDescription($row['description']);
     }
     if ($row['testconfigurations']) {
         $instance->setTestConfigurations($row['testconfigurations']);
     }
     $instance->setDbRow($row);
     return $instance;
 }