public function getAction(int $id)
    {
        try {
            $em = $this->getDoctrine()->getManager();
            $entity = $em->getRepository($this->entityClassName())->find($id);
            if ($entity) {
                return $entity;
            }
            return FOSView::create('Not Found', Response::HTTP_NO_CONTENT);
        } catch (\Exception $e) {
            return FOSView::create($e->getMessage(), Response::HTTP_INTERNAL_SERVER_ERROR);
        }
    }