docs: function addStageToCurrentBlock(that, stage, positions) {
          var name, curBlock, rndName;
          name = stage.id || stage.type;
  
          // was:
          // rndName = '_' + J.randomInt(10000);
          rndName = '_' + Math.floor((that.blocks.length + 1)/2);
  
          addStageBlock(that,
                        BLOCK_ENCLOSING + name + rndName,
                        BLOCK_ENCLOSING_STAGES,
                        positions,
                        BLOCK_STAGE);
  
          curBlock = that.getCurrentBlock();
          curBlock.add({
              type: BLOCK_STAGE,
              item: stage,
              id: stage.id
          });
  
          that.currentType = name;
  
          addBlock(that,
                   BLOCK_ENCLOSING + name + '_steps' + rndName,
                   BLOCK_ENCLOSING_STEPS,
                   'linear',
                   BLOCK_STEP);
      }