public function getEndpoint()
    {
        if ($this->_endpoint === null) {
            // will also validate the endpoint
            $this->_endpoint = new Endpoint($this->_values[self::OPTION_ENDPOINT]);
        }

        return $this->_endpoint;
    }