code: public void addStep(DeploymentOperationStep step) {
      if(currentStep != null) {
        steps.add(steps.indexOf(currentStep)+1, step);
      } else {
        steps.add(step);
      }
    }
docs: Add a new atomic step to the composite operation.
  If the operation is currently executing a step, the step is added after the current step.