public static void Remove(int id)
        {
            var wrapperToRemove = wrappers.FirstOrDefault(x => x.Id == id);

            if (wrapperToRemove != null)
            {
                wrapperToRemove.Close();
                wrappers.Remove(wrapperToRemove);
                CurrentWrapper = wrappers.FirstOrDefault();
            }
        }
        public static void SwitchWrapper(int id)
        {
            var instanceToSwitchTo = wrappers.FirstOrDefault(x => x.Id == id);

            CurrentWrapper = instanceToSwitchTo ?? throw new ArgumentException($"No wrapper found with id: {id}");
        }
 public static LotusNotesWrapper RegisterAndSetAsCurrentWrapper(LotusNotesWrapper wrapper)
 {
     wrappers.Add(CurrentWrapper = wrapper);
     return(CurrentWrapper);
 }