protected function getCurrentKvResultStorage()
    {
        /** @var ResultServerService $resultService */
        $resultService = $this->getServiceLocator()->get(ResultServerService::SERVICE_ID);
        $resultStorageKey = $resultService->getOption(ResultServerService::OPTION_RESULT_STORAGE);
        if ($resultStorageKey != 'taoAltResultStorage/KeyValueResultStorage') {
            throw new \common_Exception('Result storage is not on KeyValue storage mode.');
        }
        return $resultService->instantiateResultStorage($resultStorageKey);
    }