protected LFObjective toUnwrappedModel(LFObjective lfObjective) {
if (lfObjective instanceof LFObjectiveImpl) {
return lfObjective;
}
LFObjectiveImpl lfObjectiveImpl = new LFObjectiveImpl();
lfObjectiveImpl.setNew(lfObjective.isNew());
lfObjectiveImpl.setPrimaryKey(lfObjective.getPrimaryKey());
lfObjectiveImpl.setLfId(lfObjective.getLfId());
lfObjectiveImpl.setSequencingID(lfObjective.getSequencingID());
lfObjectiveImpl.setSatisfiedByMeasure(lfObjective.isSatisfiedByMeasure());
lfObjectiveImpl.setIdentifier(lfObjective.getIdentifier());
lfObjectiveImpl.setMinNormalizedMeasure(lfObjective.getMinNormalizedMeasure());
lfObjectiveImpl.setIsPrimary(lfObjective.getIsPrimary());
return lfObjectiveImpl;
}