private static void AddTemplate(UnpublishOverridesContentTypeElement templateElement)
        {
            if (templateElement == null)
            {
                return;
            }

            if (!ContentTypes.Contains(templateElement))
            {
                ContentTypes.Add(templateElement);
            }
        }
        private static void GetContentTypes()
        {
            var connectionManagerDataSection = ConfigurationManager.GetSection(UnpublishOverridesSection.SectionName) as UnpublishOverridesSection;

            if (connectionManagerDataSection != null)
            {
                foreach (UnpublishOverridesContentTypeElement templateElement in connectionManagerDataSection.ContentTypes)
                {
                    var template = new UnpublishOverridesContentTypeElement {
                        Name = templateElement.Name, Level = templateElement.Level
                    };
                    AddTemplate(template);
                }
            }
        }