public function getRegistry($var = null, $section = false, $default = false)
    {
        if (is_null($var)) {
            return;
        }
        if ($section && isset($this->registry[$section])) {
            if (isset($this->registry[$section][$var])) {
                return $this->registry[$section][$var];
            } else {
                return $default;
            }
        }
        if (isset($this->registry[$var])) {
            return $this->registry[$var];
        }
        return $default;
    }