@ResponseBody
	@ExceptionHandler
	@ResponseStatus(HttpStatus.BAD_REQUEST)
	public VndErrors onNotDeployedException(NotDeployedException e) {
		String logref = logDebug(e);
		return new VndErrors(logref, e.getMessage());
	}
Handles the case where client tried to un-deploy something that is not currently deployed.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/RestControllerAdvice.java