news->find($request->detailId); return $news !== null ? $this->dtoFactory->create($news) : throw new NotFoundError('News not found'); } }