class QuestionSetupCompetitionServiceImpl extends BaseTransactionalService implements QuestionSetupCompetitionService {

    @Override
    public ServiceResult<CompetitionSetupQuestionResource> getByQuestionId(long questionId) {
        return find(questionRepository.findById(questionId), notFoundError(Question.class, questionId))
                .andOnSuccess(question -> mapQuestionToSuperQuestionResource(question));
    }

}