if (sectionId == null) {
log.debug("survey section id is missing");
} else {
final SurveySection section = getSurveyService()
.retrieveSurveySectionById(sectionId);
final QuestionPattern questionPattern = QuestionPattern
.getQuestionPattern(pattern);
final UserAccount account = getUserAccount();
final Question questionAdded = getSurveyService().addQuestionToSurveySection(question,
account, section,
questionPattern, null);