private boolean isMappingExitStatus(Element step, String exitStatus) {
			NodeList children = step.getChildNodes();
			for (int c = 0; c < children.getLength(); c++) {
				String nodeName = children.item(c).getNodeName();
				if (nodeName.equals("next") || nodeName.equals("end") || nodeName.equals("fail")) {
					String onAttributeValue = children.item(c).getAttributes().getNamedItem("on").getNodeValue();
					if (onAttributeValue.equals(exitStatus)) {
						return true;
					}
				}
			}
			return false;
		}
Check if the XML element for a step indicates a &lt;next.../&gt; element for a specific
exit status.
@param step the XML element representing the step
@param exitStatus the exit status to check for
@return true if the step specifies a next attribute for the supplied exit status
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/job/dsl/JobSpecification.java