attachedRole.removeBundleGroup(bg);
}
for (BundleGroup bg : newBundleGroups) {
BundleGroup attachedBundleGroup = entityManager.find(BundleGroup.class, bg.getId());
attachedRole.addBundleGroup(attachedBundleGroup);
}
}
// Fetch the lazy Sets on the Role to be returned.
attachedRole.getResourceGroups().size();