@RequestMapping(value = "/parseJobToGraph", method = RequestMethod.POST)
	public Map<String, Object> parseJobToGraph(@RequestBody String specification) {
		Map<String, Object> response = new HashMap<>();
		JobParser jobParser = new JobParser();
		try {
			Graph graph = jobParser.getGraph(specification);
			response.put("graph", graph);
		}
		catch (JobSpecificationException jse) {
			response.put("error", jse.toExceptionDescriptor());
		}
		return response;
	}
Parse a single job specification into a graph structure.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/ToolsController.java