}
processInstance.setState(stream.readInt());
long nodeInstanceCounter = stream.readLong();
processInstance.setWorkingMemory(wm);
int nbVariables = stream.readInt();
if (nbVariables > 0) {
VariableScopeInstance variableScopeInstance = (VariableScopeInstance) processInstance
.getContextInstance(VariableScope.VARIABLE_SCOPE);
for (int i = 0; i < nbVariables; i++) {
String name = stream.readUTF();