function &packageNamed($name, $create = FALSE)
    {
        $return = NULL;
        if (isset($this->_packages[$name])) {
            $return =& $this->_packages[$name];
        } elseif ($create) {
            $newPackage =& new packageDoc($name, $this);
            $this->addPackage($newPackage);
            $return =& $newPackage;
        }

        return $return;
    }