public function desktopParameters()
    {
        $desktopTools = $this->toolManager->getToolByCriterias(
            array('isConfigurableInDesktop' => true, 'isDisplayableInDesktop' => true)
        );
        $tools = array();

        foreach ($desktopTools as $desktopTool) {
            $toolName = $desktopTool->getName();

            if ($toolName !== 'home' && $toolName !== 'parameters') {
                $tools[] = $desktopTool;
            }
        }

        if (count($tools) > 1) {
            return $this->templating->render(
                'ClarolineCoreBundle:Tool\desktop\parameters:parameters.html.twig',
                array('tools' => $tools)
            );
        }

        //otherwise only parameters exists so we return the parameters page.
        $params['_controller'] = 'ClarolineCoreBundle:Tool\DesktopParameters:desktopParametersMenu';

        $subRequest = $this->container->get('request')->duplicate(
            array(),
            null,
            $params
        );
        $response = $this->httpKernel->handle($subRequest, HttpKernelInterface::SUB_REQUEST);

        return $response->getContent();
    }