public function write()
 {
     $grb = new GroupRepositoryBuilder($this->siteContainer);
     $this->outFolder->addFileContents('group', 'index.html', $this->twigHelper->getTwig()->render('grouplist/index.html.twig', array_merge($this->baseViewParameters, array('groups' => $grb->fetchAll()))));
     $grb = new GroupRepositoryBuilder($this->siteContainer);
     foreach ($grb->fetchAll() as $group) {
         $erb = new EventRepositoryBuilder($this->siteContainer);
         $erb->setGroup($group);
         $erb->setAfterNow();
         $this->outFolder->addFileContents('group' . DIRECTORY_SEPARATOR . $group->getSlug(), 'index.html', $this->twigHelper->getTwig()->render('group/index.html.twig', array_merge($this->baseViewParameters, array('group' => $group, 'events' => $grb->fetchAll()))));
     }
 }