@RequestMapping(value = "/convertJobGraphToText", method = RequestMethod.POST)
	public Map<String, Object> convertJobGrabToText(@RequestBody Graph graph) {
		Map<String, Object> response = new HashMap<>();
		try {
			String dslText = graph.toDSLText();
			response.put("text", dslText);
		}
		catch (JobSpecificationException jse) {
			response.put("error", jse.toExceptionDescriptor());
		}
		catch (Throwable e) {
			response.put("error", e.toString());
		}
		return response;
	}
Convert a graph format into DSL text format.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/ToolsController.java