public function setParameters(array $request)
    {
        foreach ($this->getRequiredParameters() as $param) {
            if (isset($request[$param])) {
                // build setter method
                $dynamicMethod = "set" . ucfirst($param);
                if (method_exists($this, $dynamicMethod)) {
                    $this->$dynamicMethod($request[$param]);
                } else {
                    throw new ExtDirectException("Method for required parameter '{$param}' not implemented");
                }
            } else {
                throw new ExtDirectException("Required parameter '{$param}' is missing");
            }
        }
    }