public function indexAction() {
        $em = $this->getDoctrine()->getManager();
        $rootName = $this->container->getParameter('flowcode_news.root_category');
        $root = $em->getRepository('AmulenClassificationBundle:Category')->findOneBy(array("name" => $rootName));
        $entities = $em->getRepository('AmulenClassificationBundle:Category')->getChildren($root);

        return array(
            'entities' => $entities,
            'rootcategory' => $root,
        );
    }