LFActivityStateTree lfActivityStateTree) {
if (lfActivityStateTree instanceof LFActivityStateTreeImpl) {
return lfActivityStateTree;
}
LFActivityStateTreeImpl lfActivityStateTreeImpl = new LFActivityStateTreeImpl();
lfActivityStateTreeImpl.setNew(lfActivityStateTree.isNew());
lfActivityStateTreeImpl.setPrimaryKey(lfActivityStateTree.getPrimaryKey());
lfActivityStateTreeImpl.setId(lfActivityStateTree.getId());
lfActivityStateTreeImpl.setCurrentActivityID(lfActivityStateTree.getCurrentActivityID());
lfActivityStateTreeImpl.setSuspendedActivityID(lfActivityStateTree.getSuspendedActivityID());
lfActivityStateTreeImpl.setAttemptID(lfActivityStateTree.getAttemptID());
return lfActivityStateTreeImpl;
}