private function getServerParam($name, $default = null)
    {
        $data = $this->request->getServerParams();
        if (array_key_exists($name, $data)) {
            $default = trim($data[$name]);
        }
        return $default;
    }