public function loadRoleDraft($id) { if ($this->repository->hasAccess('role', 'read') !== true) { throw new UnauthorizedException('role', 'read'); } $spiRole = $this->userHandler->loadRole($id, Role::STATUS_DRAFT); return $this->roleDomainMapper->buildDomainRoleDraftObject($spiRole); }