public function newAction($person_id, $cf_group_id, Request $request)
    {
        $em = $this->getDoctrine()->getManager();

        $person = $em->getRepository('ChillPersonBundle:Person')->find($person_id);        
        $cFGroup = $em
                ->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup')
                ->find($cf_group_id);
        
        if ($person === NULL) {
            throw $this->createNotFoundException("Person not found");
        }
        
        $this->denyAccessUnlessGranted('CHILL_PERSON_SEE', $person);
        // check access on report creation for a dummy report
        $this->denyAccessUnlessGranted('CHILL_REPORT_CREATE', 
                (new Report())->setPerson($person), 'access denied for report creation');
        
        if ($cFGroup === NULL){
            throw $this->createNotFoundException("custom fields group not found");
        }

        $entity = new Report();
        $entity->setUser($this->get('security.context')->getToken()->getUser());
        $entity->setDate(new \DateTime('now'));

        $entity->setCFGroup($cFGroup);

        $form = $this->createCreateForm($entity, $person, $cFGroup);

        return $this->render('ChillReportBundle:Report:new.html.twig', array(
            'entity' => $entity,
            'form'   => $form->createView(),
            'person'   => $person
        ));
    }