if (!RoleDao.exists(inheritedRole)) {
RoleNotFoundException e = new RoleNotFoundException(inheritedRole + " role does not exist!");
e.setInehrited(true);
throw e;
}
if (RoleDao.exists(name)) throw new RoleAlreadyExistsException(name + " role already exists!");
ORole newRole = RoleDao.createRole(name, inheritedRole);
newRole.getDocument().field(FIELD_INTERNAL,false);
newRole.getDocument().field(FIELD_MODIFIABLE,true);
newRole.getDocument().field(FIELD_DESCRIPTION,description);
newRole.getDocument().field(FIELD_ASSIGNABLE,true);