protected function completeContentInfo(Values\RestContentInfo $restContentInfo) { $versionUrlValues = $this->requestParser->parse('objectVersion', $this->fetchCurrentVersionUrl($restContentInfo->currentVersionReference)); return new Values\Content\ContentInfo($this->contentTypeService, array('id' => $restContentInfo->id, 'name' => $restContentInfo->name, 'contentTypeId' => $restContentInfo->contentTypeId, 'ownerId' => $restContentInfo->ownerId, 'modificationDate' => $restContentInfo->modificationDate, 'publishedDate' => $restContentInfo->publishedDate, 'published' => $restContentInfo->published, 'alwaysAvailable' => $restContentInfo->alwaysAvailable, 'remoteId' => $restContentInfo->remoteId, 'mainLanguageCode' => $restContentInfo->mainLanguageCode, 'mainLocationId' => $restContentInfo->mainLocationId, 'sectionId' => $restContentInfo->sectionId, 'currentVersionNo' => $versionUrlValues['version'])); }