protected LFUser toUnwrappedModel(LFUser lfUser) {
if (lfUser instanceof LFUserImpl) {
return lfUser;
}
LFUserImpl lfUserImpl = new LFUserImpl();
lfUserImpl.setNew(lfUser.isNew());
lfUserImpl.setPrimaryKey(lfUser.getPrimaryKey());
lfUserImpl.setLfid(lfUser.getLfid());
lfUserImpl.setId(lfUser.getId());
lfUserImpl.setName(lfUser.getName());
lfUserImpl.setPreferredAudioLevel(lfUser.getPreferredAudioLevel());
lfUserImpl.setPreferredLanguage(lfUser.getPreferredLanguage());
lfUserImpl.setPreferredDeliverySpeed(lfUser.getPreferredDeliverySpeed());
lfUserImpl.setPreferredAudioCaptioning(lfUser.getPreferredAudioCaptioning());
return lfUserImpl;
}