protected function InitBundles()
    {
        $bundles = PathUtil::Bundles();
        $this->bundles = array();
        foreach ($bundles as $bundle)
        {
            if (count($this->BundleModules($bundle)) > 0)
            {
                $this->bundles[] = $bundle;
            }
        }
    }