/**
  * @param Page $page
  * @param $path_str
  * @param RouteCollection $routes
  * @throws \Exception
  * @throws \PropelException
  */
 private function addPageRoute(Page $page, $path_str, RouteCollection $routes)
 {
     $route = new Route($path_str . '/{page_id}', array('_controller' => $this->getPageControllerName(), 'page_id' => (string) $page->getId()), array('page_id' => (string) $page->getId()));
     $route_name = 'etfostra_content_' . $page->getId();
     $routes->add($route_name, $route);
     $page->setRouteName($route_name)->save();
 }