void (final ProxyGroup newGroup, final Map<String, ProxyGroup> oldGroups) { final String newGroupName = newGroup.getName(); final ProxyGroup oldGroup = oldGroups.get(newGroupName); final boolean groupWasAdded = (oldGroup == null) && (! newGroup.isDefault()); if (! groupWasAdded) { // to track deleted oldGroups.remove(newGroupName); } processGroup(newGroup, oldGroup, groupWasAdded); }