case PersisterEnums.WORK_ITEM_NODE_INSTANCE :
nodeInstance = new WorkItemNodeInstance();
((WorkItemNodeInstance) nodeInstance).internalSetWorkItemId( stream.readLong() );
break;
case PersisterEnums.SUB_PROCESS_NODE_INSTANCE :
nodeInstance = new SubProcessNodeInstance();
((SubProcessNodeInstance) nodeInstance).internalSetProcessInstanceId( stream.readLong() );
break;
case PersisterEnums.MILESTONE_NODE_INSTANCE :
nodeInstance = new MilestoneNodeInstance();
int nbTimerInstances = stream.readInt();