*/
private void changeGrantsOfGroup(Group group, JtalksPermission permission, Entity entity, boolean granted) {
if (group instanceof AnonymousGroup) {
changeGrantsOfAnonymousGroup(permission, entity, granted);
} else {
AclBuilders builders = new AclBuilders();
if (granted) {
builders.newBuilder(aclManager).grant(permission).to(group).on(entity).flush();
} else {
builders.newBuilder(aclManager).restrict(permission).to(group).on(entity).flush();
}
}
}