private void doBuddyGroupDelete(UserRequest ureq) {
// 1) send notification mails to users
Manager securityManager = ManagerFactory.getManager();
ContactList owners = new ContactList(translate("userlist.owners.title"));
List ow = securityManager.getIdentitiesOfSecurityGroup(currBusinessGroup.getOwnerGroup());
owners.addAllIdentites(ow);
ContactList participants = new ContactList(translate("userlist.participants.title"));
participants.addAllIdentites(securityManager.getIdentitiesOfSecurityGroup(currBusinessGroup.getPartipiciantGroup()));
// check if user is in owner group (could fake link in table)
if (!PersistenceHelper.listContainsObjectByKey(ow, ureq.getIdentity())) {
Tracing.logWarn("User tried to delete a group but he was not owner of the group", null, BGMainController.class);