protected LFAnswer toUnwrappedModel(LFAnswer lfAnswer) {
if (lfAnswer instanceof LFAnswerImpl) {
return lfAnswer;
}
LFAnswerImpl lfAnswerImpl = new LFAnswerImpl();
lfAnswerImpl.setNew(lfAnswer.isNew());
lfAnswerImpl.setPrimaryKey(lfAnswer.getPrimaryKey());
lfAnswerImpl.setId(lfAnswer.getId());
lfAnswerImpl.setDescription(lfAnswer.getDescription());
lfAnswerImpl.setCorrect(lfAnswer.isCorrect());
lfAnswerImpl.setQuestionId(lfAnswer.getQuestionId());
lfAnswerImpl.setRangeFrom(lfAnswer.getRangeFrom());
lfAnswerImpl.setRangeTo(lfAnswer.getRangeTo());
lfAnswerImpl.setMatchingText(lfAnswer.getMatchingText());
lfAnswerImpl.setAnswerPosition(lfAnswer.getAnswerPosition());
lfAnswerImpl.setAnswerType(lfAnswer.getAnswerType());
return lfAnswerImpl;
}