getPersistence()->get(self::PREFIX . $consumerId . $resourceLink); if ($id == false) { $id = \core_kernel_uri_UriService::singleton()->generateUri(); $this->getPersistence()->set(self::PREFIX . $consumerId . $resourceLink, $id); } return $id; } /** * @return \common_persistence_KeyValuePersistence */ protected function getPersistence() { return $this->getServiceLocator()->get(\common_persistence_Manager::SERVICE_ID) ->getPersistenceById($this->getOption(self::OPTION_PERSISTENCE)); } }