public function showExceptionPageAction(FlattenException $exception)
 {
     $entityConfig = isset($this->easyAdminConfig['entities'][$this->currentEntityName]) ? $this->easyAdminConfig['entities'][$this->currentEntityName] : null;
     $exceptionTemplatePath = isset($entityConfig['templates']['exception']) ? $entityConfig['templates']['exception'] : isset($this->easyAdminConfig['design']['templates']['exception']) ? $this->easyAdminConfig['design']['templates']['exception'] : '@EasyAdmin/default/exception.html.twig';
     return $this->templating->renderResponse($exceptionTemplatePath, array('exception' => $exception), Response::create()->setStatusCode($exception->getStatusCode()));
 }
 public function showExceptionPageAction(FlattenException $exception)
 {
     return $this->templating->renderResponse('@EasyAdmin/default/exception.html.twig', array('exception' => $exception), Response::create()->setStatusCode($exception->getStatusCode()));
 }