/**
  * @return Nette\Application\Application
  */
 public function createServiceApplication()
 {
     $service = new Nette\Application\Application($this->getService('nette.presenterFactory'), $this->getService('router'), $this->getService('httpRequest'), $this->getService('httpResponse'));
     $service->catchExceptions = TRUE;
     $service->errorPresenter = 'Error';
     Nette\Application\Diagnostics\RoutingPanel::initializePanel($service);
     return $service;
 }
 /**
  * @return Nette\Application\Application
  */
 protected function createServiceApplication()
 {
     $service = new Nette\Application\Application($this->getService('nette.presenterFactory'), $this->getService('router'), $this->getService('httpRequest'), $this->getService('httpResponse'));
     $service->catchExceptions = FALSE;
     $service->errorPresenter = NULL;
     Nette\Application\Diagnostics\RoutingPanel::initializePanel($service);
     Nette\Diagnostics\Debugger::$bar->addPanel(new Nette\Application\Diagnostics\RoutingPanel($this->getService('router'), $this->getService('httpRequest')));
     return $service;
 }