protected function setParameters(array $parameters)
    {
        if (empty($parameters)) {
            throw new InvalidArgumentException('Parameters can not be null');
        }

        $this->uri = null;

        foreach ($parameters as $key => $param) {
            if (preg_match("/{$key}/i", $this->endPoint)) {
                if (is_null($this->uri)) {
                    $this->uri = $this->endPoint;
                }

                $this->uri = str_replace($key, $param, $this->uri);
            }
        }

        if (empty($this->uri)) {
            throw new Exception(
                'Parameters definition not matches with request end point'
            );
        }
    }