protected function fetchCurrentVersionUrl($currentVersionReference)
{
$versionResponse = $this->client->request('GET', $currentVersionReference);
if ($this->isErrorResponse($versionResponse)) {
return $this->inputDispatcher->parse($versionResponse);
}
return $versionResponse->headers['Location'];
}