userGroupPalette.diff(orig, add, remove);
ugStore.updateUser(user);
for (GeoServerUserGroup g : add) ugStore.associateUserToGroup(user, g);
for (GeoServerUserGroup g : remove) ugStore.disAssociateUserFromGroup(user,g);
ugStore.store();
}
} catch (IOException ex) {
LOGGER.log(Level.WARNING, ex.getLocalizedMessage(), ex);