private void ImportGroups()
 {
     foreach (Group rdcManGroup in this.groups)
     {
         var context = new ImportContext(rdcManGroup.Groups, rdcManGroup.Servers);
         context.ImportContent();
         this.Imported.AddRange(context.Imported);
     }
 }
        private static List<FavoriteConfigurationElement> TryImport(string fileName)
        {
            var document = new Document(fileName);
            if (!document.IsVersion22)
                throw new NotSupportedException("Rdc manager supports only version 2.2 import");

            var context = new ImportContext(document.Groups, document.Servers);
            context.ImportContent();
            return context.Imported;
        }