public override void RecreateExtendedProperties()
        {
            base.RecreateExtendedProperties();


            ExtendedProperties.Add("MetricId", MetricId.ToString());

            ExtendedProperties.Add("ValueMinimum", ValueMinimum.ToString());

            ExtendedProperties.Add("ValueMaximum", ValueMaximum.ToString());

            ExtendedProperties.Add("CountOf", CountOf.ToString());


            foreach (String currentKey in AgeCriteria.MapToExtendedProperties().Keys)
            {
                ExtendedProperties.Add(currentKey, AgeCriteria.MapToExtendedProperties()[currentKey]);
            }

            foreach (String currentKey in DateCriteria.MapToExtendedProperties().Keys)
            {
                ExtendedProperties.Add(currentKey, DateCriteria.MapToExtendedProperties()[currentKey]);
            }


            return;
        }
        public override void RecreateExtendedProperties()
        {
            base.RecreateExtendedProperties();


            ExtendedProperties.Add("ServiceId", ServiceId.ToString());

            ExtendedProperties.Add("CountOf", CountOf.ToString());


            foreach (String currentKey in AgeCriteria.MapToExtendedProperties().Keys)
            {
                ExtendedProperties.Add(currentKey, AgeCriteria.MapToExtendedProperties()[currentKey]);
            }

            foreach (String currentKey in DateCriteria.MapToExtendedProperties().Keys)
            {
                ExtendedProperties.Add(currentKey, DateCriteria.MapToExtendedProperties()[currentKey]);
            }


            return;
        }