private BundleManifest GetBundle()
        {
            _BundleModel model = _projectContext.ActiveProject.Models.Get<_BundleModel>();
            BundleManifest manifest = CollectionUtils.Find(
                model.BundleManifests,
                delegate(BundleManifest item)
                    {
                        return (StringUtils.CaseInsensitiveEquals(item.Name, _settings.ManifestName));
                    });

            if (manifest == null)
            {
                manifest = new BundleManifest(model);
                manifest.Name = _settings.ManifestName;
                manifest.AutoAddChildren = false;
                manifest.Validate();
                manifest.Save();
                model.BundleManifests.Add(manifest);

                _hierarchyNodeService.InsertBundleManifestNode(manifest);
            }

            return manifest;
        }