/**
  * @return array
  */
 public function getNavigation()
 {
     if ($this->navigationCache->isEnabled()) {
         return $this->navigationCache->getNavigation();
     }
     return $this->navigationCollector->getNavigation();
 }
 /**
  * @return void
  */
 public function writeNavigationCache()
 {
     $navigation = $this->navigationCollector->getNavigation();
     $this->navigationCache->setNavigation($navigation);
 }