public function loadContentInfoByRemoteId($remoteId) { $response = $this->client->request('GET', $this->requestParser->generate('objectByRemote', array('object' => $remoteId)), new Message(array('Accept' => $this->outputVisitor->getMediaType('ContentInfo')))); if ($response->statusCode == 307) { $response = $this->client->request('GET', $response->headers['Location'], new Message(array('Accept' => $this->outputVisitor->getMediaType('ContentInfo')))); } $restContentInfo = $this->inputDispatcher->parse($response); return $this->completeContentInfo($restContentInfo); }