public Map<String, String> toMap() {
		Map<String, String> map = new HashMap<String, String>();
		map.put(STATUS_KEY, state.toString());
		if (StringUtils.hasText(errorDescription)) {
			map.put(ERROR_DESCRIPTION_KEY, errorDescription);
		}
		return Collections.unmodifiableMap(map);
	}
Return a map containing the state and error description
(if any) for this status. This map may be serialized
into ZooKeeper to write out the module deployment status.

@return map containing the module deployment status
@see #buildPath
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/server/admin/deployment/ModuleDeploymentStatus.java