/**
  * @param string $pageId
  *
  * @throws \Exception
  * @return DataPage
  */
 protected function getDataPageObject($pageId)
 {
     $pageData = $this->getPageData($pageId);
     $page = new DataPage();
     $page->setWebsiteid($this->websiteId)->setId($pageId)->setName($pageData['name'])->setDescription($pageData['description'])->setNavigationtitle($pageData['navigationTitle'])->setInnavigation($pageData['inNavigation'] ? 1 : 0)->setDate($pageData['date'])->setGlobalContent(\json_encode($pageData['global']))->setPageType($pageData['pageType'])->setPageAttributes(\json_encode($pageData['pageAttributes']));
     return $page;
 }