class ReviewServiceImpl implements ReviewService {

    @Override
    @Transactional(readOnly = true)
    public ServiceResult<ReviewResource> getReview(long assessmentReviewId) {
        return find(reviewRepository.findById(assessmentReviewId), notFoundError(ReviewResource.class, assessmentReviewId))
                .andOnSuccessReturn(reviewMapper::mapToResource);
    }

}