gaStore = new RoleStoreValidationWrapper(gaStore);
for (GeoServerUserGroup group : removePanel.getRoots()) {
List<GeoServerRole> list= new ArrayList<GeoServerRole>();
list.addAll(gaStore.getRolesForGroup(group.getGroupname()));
for (GeoServerRole role: list)
gaStore.disAssociateRoleFromGroup(role, group.getGroupname());
}
gaStore.store();
} catch (IOException ex) {
try {gaStore.load(); } catch (IOException ex2) {};
throw new RuntimeException(ex);