/**
  * Adds a virtual page to the page repository.
  * @todo Remembering virtual pages is no longer necessary, rewrite method to create new virtual pages
  * @param  \Cx\Core\ContentManager\Model\Entity\Page  $virtualPage
  * @param  string                         $beforeSlug
  */
 public function addVirtualPage($virtualPage, $beforeSlug = '')
 {
     $virtualPage->setVirtual(true);
     if (!$virtualPage->getLang()) {
         $virtualPage->setLang(FRONTEND_LANG_ID);
     }
     $this->virtualPages[] = array('page' => $virtualPage, 'beforeSlug' => $beforeSlug);
 }
 public function setLang($lang)
 {
     $this->_load();
     return parent::setLang($lang);
 }