public function deactivateEntryPoint($entryId, $target = self::OPTION_POSTLOGIN)
    {
        $success = false;
        $entryPoints = $this->getOption(self::OPTION_ENTRYPOINTS);
        if (!isset($entryPoints[$entryId])) {
            throw new \common_exception_InconsistentData('Unknown entrypoint '.$entryId);
        }
        $actives = $this->hasOption($target) ? $this->getOption($target) : array();
        if (in_array($entryId, $actives)) {
            $actives = array_diff($actives, array($entryId));
            $this->setOption($target, $actives);
            $success = true;
        } else {
            \common_Logger::w('Tried to desactivate inactive entry point '.$entryId);
        }
        return $success;
    }