public function index()
    {
        $authorizationService = $this->getServiceLocator()->get(Authorization::SERVICE_ID);
        if ($authorizationService->isAuthorized()) {
            $config = $this->loadConfig();

            if (!empty($config['diagnostic']['pageTitle'])) {
                $this->setData('title', $config['diagnostic']['pageTitle']);
            }

            $this->setData('client_config_url', $this->getClientConfigUrl());
            $this->setData('content-config', $config);
            $this->setData('logout', $this->getServiceLocator()->get(DefaultUrlService::SERVICE_ID)->getLogoutUrl());
            $this->setData('content-controller', 'taoClientDiagnostic/controller/CompatibilityChecker/diagnostics');
            $this->setData('content-template', 'CompatibilityChecker' . DIRECTORY_SEPARATOR . 'diagnostics.tpl');
            $this->setView('index.tpl');
        } else {
            $this->redirect($authorizationService->getAuthorizationUrl(_url('index')));
        }
    }