class QuestionGroupController extends QuestionnaireController {

    public String addSection(QuestionGroupForm questionGroupForm, RequestContext requestContext) {
        if (questionGroupForm.hasNoQuestionsInCurrentSection()) {
            constructErrorMessage(requestContext.getMessageContext(),
                    "questionnaire.error.no.question.in.section", "currentSectionTitle", "Section should have at least one question.");
            return "failure";
        }
        questionGroupForm.addCurrentSection();
        return "success";
    }

    @SuppressWarnings({"UnusedDeclaration"}) public  QuestionGroupController();
    public  QuestionGroupController(QuestionnaireServiceFacade questionnaireServiceFacade);

}