private void addNextAttribute(Element step, String jobExitStatus, String targetId) {
			Element next = doc.createElement("next");
			next.setAttribute("on", jobExitStatus);
			next.setAttribute("to", targetId);
			step.appendChild(next);
		}
Create a &lt;next on=  to=&gt; attribute and attach it to the supplied step element.
@param step the step that will get the new attribute
@param jobExitStatus the jobExitStatus to fill in as the 'on' attribute value field
@param targetId the target XML ID to fill in as the 'to' attribute value field
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/job/dsl/JobSpecification.java