public function loadTrashItem($trashItemId)
{
if ($this->repository->hasAccess('content', 'restore') !== true) {
throw new UnauthorizedException('content', 'restore');
}
$spiTrashItem = $this->persistenceHandler->trashHandler()->loadTrashItem($trashItemId);
$trash = $this->buildDomainTrashItemObject($spiTrashItem);
if (!$this->repository->canUser('content', 'read', $trash->getContentInfo())) {
throw new UnauthorizedException('content', 'read');
}
return $trash;
}