class InterviewApplicationFeedbackServiceImpl implements InterviewApplicationFeedbackService {

    @Override
    @Transactional(readOnly = true)
    public ServiceResult<FileAndContents> downloadFeedback(long applicationId) {
        return findAssignmentByApplicationId(applicationId).andOnSuccess(interviewAssignment ->
            fileEntryService.findOne(interviewAssignment.getMessage().getFeedback().getId())
                    .andOnSuccess(this::getFileAndContents));
    }

}