private void addFailAttribute(Element step, String jobExitStatus) {
			Element fail = doc.createElement("fail");
			fail.setAttribute("on", jobExitStatus);
			step.appendChild(fail);
		}
Create a &lt;fail on=&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
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/job/dsl/JobSpecification.java