// entitlements
if (roleMod.isModEntitlements()) {
role.getEntitlements().clear();
for (String entitlementName : roleMod.getEntitlements()) {
Entitlement entitlement = entitlementDAO.find(entitlementName);
if (entitlement == null) {
LOG.warn("Ignoring invalid entitlement {}", entitlementName);
} else {
role.addEntitlement(entitlement);
}