public Map<String, String> toMap() {
		Map<String, String> map = new HashMap<String, String>();
		map.put(STATE_KEY, state.toString());
		if (StringUtils.hasText(errorDescription)) {
			map.put(ERROR_DESCRIPTION, errorDescription);
		}
		return Collections.unmodifiableMap(map);
	}
Return a map containing the deployment unit status information.

@return map with deployment unit status information
@see #STATE_KEY
@see #ERROR_DESCRIPTION
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/core/DeploymentUnitStatus.java