} else if (event instanceof BusinessGroupModifiedEvent) {
BusinessGroupModifiedEvent bgme = (BusinessGroupModifiedEvent) event;
Identity identity = uce.getIdentityEnvironment().getIdentity();
// only do something if this identity is affected by change and the action
// was adding or removing of the user
if (bgme.wasMyselfAdded(identity) || bgme.wasMyselfRemoved(identity)) {
// 1) reinitialize all group memberships
initGroupMemberships(identity);
// 2) reinitialize the users roles and rights
initUserRolesAndRights(identity);
// 3) rebuild toolboxes with link to groups and tools