private function setVersionFromRequest(array $versions)
    {
        $this->setDefaultVersion($versions);

        foreach ($versions as $v) {
            if ($v->canParseRequest()) {
                $this->version = $v;
                break;
            }
        }
    }