/// <summary>
        /// Copies the source rule group into a new rule group
        /// </summary>
        private static void CopyRuleGroup(string source, string newRuleGroupName)
        {
            ManagementService svc = ManagementServiceHelper.CreateManagementServiceClient();

            RuleGroup rg = svc.RuleGroups.Where(g => g.Name == source).FirstOrDefault();

            svc.CopyRuleGroup(rg, newRuleGroupName);

            svc.SaveChangesBatch();
        }