@RequestParam(value = "preparationquestionsonly", defaultValue = "false") final boolean preparationQuestionsOnly,
final HttpServletResponse response
) {
List<Question> questions;
if (lectureQuestionsOnly) {
<BUG>questions = questionService.getLectureQuestions(sessionkey, offset, limit);
} else if (flashcardsOnly) {
questions = questionService.getFlashcards(sessionkey, offset, limit);
} else if (preparationQuestionsOnly) {
questions = questionService.getPreparationQuestions(sessionkey, offset, limit);
} else {
questions = questionService.getSkillQuestions(sessionkey, offset, limit);
}</BUG>
if (questions == null || questions.isEmpty()) {

@RequestParam(value = "preparationquestionsonly", defaultValue = "false") final boolean preparationQuestionsOnly,
final HttpServletResponse response
) {
List<Question> questions;
if (lectureQuestionsOnly) {
questions = questionService.getLectureQuestions(sessionkey);
} else if (flashcardsOnly) {
questions = questionService.getFlashcards(sessionkey);
} else if (preparationQuestionsOnly) {
questions = questionService.getPreparationQuestions(sessionkey);
} else {
questions = questionService.getSkillQuestions(sessionkey);
}
if (questions == null || questions.isEmpty()) {
