/* (non-Javadoc)
* @see org.cast.isi.service.IQuestionService#createQuestion(org.cast.cwm.data.models.UserModel, java.lang.String, java.lang.String)
*/
public void createQuestion(UserModel mOwner, String text, String pageName) {
Session session = Databinder.getHibernateSession();
Question question = new Question(text, mOwner.getObject(), null);
ISIPrompt prompt = new ISIPrompt(PromptType.MY_QUESTIONS);
if (mOwner != null) {
prompt.setTargetUser(mOwner.getObject());
eventService.saveEvent("question:create", text, pageName);
}
session.save(prompt);
question.setPrompt(prompt);
session.save(question);
cwmService.flushChanges();
}