private static SiteConfiguration CreateSiteConfiguration(SiteDefinition siteConfiguration)
 {
   var title = siteConfiguration.Item.GetString(MultiSite.Templates.SiteConfiguration.Fields.Title);
   if (string.IsNullOrEmpty(title))
   {
     title = siteConfiguration.Name;
   }
   return new SiteConfiguration
          {
            HostName = siteConfiguration.HostName,
            Name = siteConfiguration.Name,
            Title = title,
            ShowInMenu = siteConfiguration.Item.GetCheckBoxValue(MultiSite.Templates.SiteConfiguration.Fields.ShowInMenu),
            IsCurrent = siteConfiguration.IsCurrent
          };
 }
 private bool IsValidSiteConfiguration(SiteDefinition siteDefinition)
 {
   return siteDefinition.Item != null && IsSiteConfigurationItem(siteDefinition.Item);
 }