public Question createQuestion(String questionText, String categoryName) {
Question question = null;
try {
question = new Question(getDomainModel());
question.setQuestion(questionText);
Categories categories = (Categories) getDomainModel().getEntry(
"Categories");
Category category = categories.getCategory(categoryName);
if (category != null) {
question.setCategory(category);
}
if (!add(question)) {
question = null;