protected function getParam(string $name)
    {
        if (!array_key_exists($name, $this->_params)) {
            throw new Exception ('Required parameter "' . $name . '" was not set');
        }

        return $this->_params[$name];
    }