switch ( nodeType ) {
case PersisterEnums.RULE_SET_NODE_INSTANCE :
nodeInstance = new RuleSetNodeInstance();
break;
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() );