public function deleteAction($id)
    {
        $acl = $this->get('bacon_acl.service.authorization');

        if (!$acl->authorize('module-actions', 'DELETE')) {
            throw $this->createAccessDeniedException();
        }

        $formHandlerName    =   $this->getParameter('bacon_acl.forms.module_actions_form_handler_class');

        $entity = $this->getRepository()->find($id);

        if (!$entity) {
            return $this->createNotFoundException('Entity not Exists!');
        }

        $handler = new $formHandlerName(
            $this->createDeleteForm('module_actions_delete', $entity),
            $this->get('doctrine')->getManager(),
            $this->get('session')->getFlashBag()
        );

        $handler->delete($entity);

        return $this->redirect($this->generateUrl('module_actions'));
    }