protected LFActivity toUnwrappedModel(LFActivity lfActivity) {
if (lfActivity instanceof LFActivityImpl) {
return lfActivity;
}
LFActivityImpl lfActivityImpl = new LFActivityImpl();
lfActivityImpl.setNew(lfActivity.isNew());
lfActivityImpl.setPrimaryKey(lfActivity.getPrimaryKey());
lfActivityImpl.setIndexNumber(lfActivity.getIndexNumber());
lfActivityImpl.setId(lfActivity.getId());
lfActivityImpl.setPackageID(lfActivity.getPackageID());
lfActivityImpl.setOrganizationID(lfActivity.getOrganizationID());
lfActivityImpl.setParentID(lfActivity.getParentID());
lfActivityImpl.setTitle(lfActivity.getTitle());
lfActivityImpl.setIdentifierRef(lfActivity.getIdentifierRef());
lfActivityImpl.setResourceParameters(lfActivity.getResourceParameters());
lfActivityImpl.setHideLMSUI(lfActivity.getHideLMSUI());
lfActivityImpl.setVisible(lfActivity.isVisible());
lfActivityImpl.setObjectivesGlobalToSystem(lfActivity.isObjectivesGlobalToSystem());
lfActivityImpl.setSharedDataGlobalToSystem(lfActivity.isSharedDataGlobalToSystem());
lfActivityImpl.setMasteryScore(lfActivity.getMasteryScore());
lfActivityImpl.setMaxTimeAllowed(lfActivity.getMaxTimeAllowed());
return lfActivityImpl;
}