protected LFQuestion toUnwrappedModel(LFQuestion lfQuestion) {
if (lfQuestion instanceof LFQuestionImpl) {
return lfQuestion;
}
LFQuestionImpl lfQuestionImpl = new LFQuestionImpl();
lfQuestionImpl.setNew(lfQuestion.isNew());
lfQuestionImpl.setPrimaryKey(lfQuestion.getPrimaryKey());
lfQuestionImpl.setId(lfQuestion.getId());
lfQuestionImpl.setCategoryId(lfQuestion.getCategoryId());
lfQuestionImpl.setTitle(lfQuestion.getTitle());
lfQuestionImpl.setDescription(lfQuestion.getDescription());
lfQuestionImpl.setExplanationText(lfQuestion.getExplanationText());
lfQuestionImpl.setForceCorrectCount(lfQuestion.isForceCorrectCount());
lfQuestionImpl.setCaseSensitive(lfQuestion.isCaseSensitive());
lfQuestionImpl.setQuestionType(lfQuestion.getQuestionType());
lfQuestionImpl.setCourseId(lfQuestion.getCourseId());
lfQuestionImpl.setArrangementIndex(lfQuestion.getArrangementIndex());
return lfQuestionImpl;
}