public function newAction(Request $request)
    {
        $acl = $this->get('bacon_acl.service.authorization');

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

        $entityName         =   $this->getParameter('bacon_acl.entities.module_actions');
        $formTypeName       =   $this->getParameter('bacon_acl.forms.module_actions_form_type_class');
        $formHandlerName    =   $this->getParameter('bacon_acl.forms.module_actions_form_handler_class');

        $breadcumbs = $this->container->get('bacon_breadcrumbs');

        $breadcumbs->addItem([
            'title' => 'ModuleActions',
            'route' => 'module_actions',
        ]);

        $breadcumbs->addItem([
            'title' => 'New',
            'route' => '',
        ]);

        $form = $this->createForm($formTypeName, new $entityName());

        $form->add('add_all_actions', CheckboxType::class, [
            'required'  => false,
            'label'     => 'Adicionar em todas as actions',
            'mapped'    => false
        ]);

        $form->handleRequest($request);

        if ($form->isSubmitted()) {
            $handler = new $formHandlerName(
                $form,
                $this->getDoctrine()->getManager(),
                $this->get('session')->getFlashBag()
            );

            $handler->setRequest($request);

            if ($handler->save()) {
                return $this->redirect($this->generateUrl('module_actions'));
            }
        }

        return [
            'form'   => $form->createView(),
        ];
    }