case PersisterEnums.HUMAN_TASK_NODE_INSTANCE :
nodeInstance = new HumanTaskNodeInstance();
((HumanTaskNodeInstance) nodeInstance).internalSetWorkItemId( stream.readLong() );
break;
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() );