private function UpdateBundleVersion($bundle)
    {
        $instBundle = InstalledBundle::Schema()->ByBundle($bundle);
        if (!$instBundle)
        {
            $instBundle = new InstalledBundle();
        }
        $instBundle->SetVersion($this->installedBundles[$bundle]);
        $instBundle->SetBundle($bundle);
        $instBundle->SetLastUpdate(Date::Now());
        $instBundle->Save();
    }