Boolean ret = null;
try {
ret = executeWithRetry(new Command<Boolean>() {
@Override
public Boolean run(RawStore ms) throws Exception {
Role role = ms.getRole(roleName);
return ms.grantRole(role, userName, principalType, grantor, grantorType, grantOption);
}
});
} catch (MetaException e) {
throw e;