public function findByCategoryAction(Request $request, $category_name, $pageId = null)
    {
        $em = $this->getDoctrine()->getManager();

        $category = $em->getRepository('AmulenClassificationBundle:Category')->findOneBy(array("name" => $category_name));

        $pages = $em->getRepository('AmulenPageBundle:Page')->findByCategory($category->getId(), $pageId);

        return array(
            "pages" => $pages
        );
    }