public function loadRole($roleId, $status = Role::STATUS_DEFINED)
{
$data = $this->roleGateway->loadRole($roleId, $status);
if (empty($data)) {
throw new RoleNotFound($roleId, $status);
}
$role = $this->mapper->mapRole($data);
foreach ($role->policies as $policy) {
$this->limitationConverter->toSPI($policy);
}
return $role;
}