protected LFRollupRule toUnwrappedModel(LFRollupRule lfRollupRule) {
if (lfRollupRule instanceof LFRollupRuleImpl) {
return lfRollupRule;
}
LFRollupRuleImpl lfRollupRuleImpl = new LFRollupRuleImpl();
lfRollupRuleImpl.setNew(lfRollupRule.isNew());
lfRollupRuleImpl.setPrimaryKey(lfRollupRule.getPrimaryKey());
lfRollupRuleImpl.setId(lfRollupRule.getId());
lfRollupRuleImpl.setSequencingID(lfRollupRule.getSequencingID());
lfRollupRuleImpl.setCombination(lfRollupRule.getCombination());
lfRollupRuleImpl.setChildActivitySet(lfRollupRule.getChildActivitySet());
lfRollupRuleImpl.setMinimumCount(lfRollupRule.getMinimumCount());
lfRollupRuleImpl.setMinimumPercent(lfRollupRule.getMinimumPercent());
lfRollupRuleImpl.setAction(lfRollupRule.getAction());
return lfRollupRuleImpl;
}