code: public void finishStep()
      {
          // Close step
          if (this.children != null && !this.children.isEmpty()) {
              this.children.get(this.children.size() - 1).finish();
          }
      }
docs: Finish current step.