public void AddInstanceToCurrentGroup(Instance instance) { if (SelectedGroup == null) { return; } try { _cache.AddInstanceToGroup(instance, SelectedGroup); } catch (WebException e) { ShowPopupWebException(e); } }