protected LFRuleCondition toUnwrappedModel(LFRuleCondition lfRuleCondition) {
if (lfRuleCondition instanceof LFRuleConditionImpl) {
return lfRuleCondition;
}
LFRuleConditionImpl lfRuleConditionImpl = new LFRuleConditionImpl();
lfRuleConditionImpl.setNew(lfRuleCondition.isNew());
lfRuleConditionImpl.setPrimaryKey(lfRuleCondition.getPrimaryKey());
lfRuleConditionImpl.setId(lfRuleCondition.getId());
lfRuleConditionImpl.setConditionType(lfRuleCondition.getConditionType());
lfRuleConditionImpl.setObjectiveId(lfRuleCondition.getObjectiveId());
lfRuleConditionImpl.setMeasureThreshold(lfRuleCondition.getMeasureThreshold());
lfRuleConditionImpl.setInverse(lfRuleCondition.isInverse());
lfRuleConditionImpl.setRollupRuleID(lfRuleCondition.getRollupRuleID());
lfRuleConditionImpl.setConditionRuleID(lfRuleCondition.getConditionRuleID());
return lfRuleConditionImpl;
}