new UserGroupStoreValidationWrapper(getUserGroupStore(ugServiceName));
try {
ugStore.addUser(user);
for (GeoServerUserGroup group : userGroupPalette.getSelectedGroups()) {
ugStore.associateUserToGroup(user, group);
}
ugStore.store();
} catch (IOException ex) {
try {ugStore.load(); } catch (IOException ex2) {};