class AssessmentFeedbackController {

    @GetMapping("/question/{questionId}")
    public String getQuestion(Model model,
                              @ModelAttribute(name = FORM_ATTR_NAME, binding = false) Form form,
                              @PathVariable("assessmentId") long assessmentId,
                              @PathVariable("questionId") long questionId) {

        QuestionResource question = getQuestionForAssessment(questionId, assessmentId);

        if (question.getQuestionSetupType().equals(QuestionSetupType.APPLICATION_DETAILS)) {
            return getApplicationDetails(model, assessmentId, question);
        }

        populateQuestionForm(form, assessmentId, questionId);
        return doViewQuestion(model, assessmentId, question);
    }

}