public function writeSite(SiteBuilder $site)
 {
     print "Site: ref = {$site->getSiteRef()}" . PHP_EOL;
     foreach ($site->getPages() as $page) {
         $this->writePage($page, $site->getSiteRef());
     }
 }
 public function addGlobalValue(SiteBuilder $site, $values)
 {
     if ($site->getSiteRef() !== null && $site->getSiteRef() > 0) {
         $addGlobalValueCmd = $this->apiClient->getCommand('Updateaglobalvalue', array_merge(array('siteRef' => $site->getSiteRef()), $values));
         $addGlobalValueCmd->execute();
     }
 }