public StepBuilder endOn(final String on, final String exitStatus) { final End end = new End(); end.setOn(on); end.setExitStatus(exitStatus); step.getTransitionElements().add(end); return this; }