public function loadRoleDraftByRoleId($roleId) { if ($this->repository->hasAccess('role', 'read') !== true) { throw new UnauthorizedException('role', 'read'); } $spiRole = $this->userHandler->loadRoleDraftByRoleId($roleId); return $this->roleDomainMapper->buildDomainRoleDraftObject($spiRole); }