public function getQuery($key = null, $default = null) {
        if ($key === null) {
            return $this->env['QUERY'];
        }
        return isset($this->env['QUERY'][$key]) ? $this->env['QUERY'][$key] : $default;
    }