/**
  * Restore the page
  *
  * @param stdClass $nodeData
  * @param int $destination
  * @return array
  */
 public function restoreNode($nodeData, $destination)
 {
     /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
     $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array) $nodeData);
     try {
         Commands::restoreNode($node, $destination);
         $newNode = Commands::getNode($node->getId());
         $returnValue = $newNode->toArray();
     } catch (\Exception $exception) {
         $returnValue = array('success' => false, 'message' => $exception->getMessage());
     }
     return $returnValue;
 }