public TestQuestion createTestQuestion(String questionText, Double valor) { if (this.typeExam != ExamType.OPEN_ANSWER) { TestQuestion q = new TestQuestion(questionText, valor); q.setExam(this); this.questions.add(q); return q; } else return null; }