Document nextNodeDoc ;
switch(...)
   case 48: // '0'
                    nextNodeDoc = WFDb.getDocumentByUNID(nextNodeID);
                    tmpStr = prepareNextNode(pSession, mainDoc, nextNodeDoc);
                    break;                case 49: // '1'
                    nextNodeDoc = WFDb.getDocumentByUNID(nextNodeID);
                    tmpStr = "[/" + urlStr + "/FWebSelectNode?OpenForm&" + mainDocID + "]";
                    break;