Set<String> privileges = PrivilegeUtils.toPrivilegeStrings(roleValue);
if (!invalidConfiguration && privileges != null) {
Set<String> internedPrivileges = Sets.newHashSet();
for(String privilege : privileges) {
for(PrivilegeValidator validator : validators) {
validator.validate(new PrivilegeValidatorContext(database, privilege.trim()));
}
internedPrivileges.add(stringInterner.intern(privilege));
}
roleNameToPrivilegeMap.putAll(roleName, internedPrivileges);
}