@Override
	public void deploy(String name, Map<String, String> properties) {
		// TODO: discover link by some other means (search by exact name on
		// resources??)
		String uriTemplate = resources.get(this.resourceType + "/deployments").toString() + "/{name}";
		MultiValueMap<String, Object> values = new LinkedMultiValueMap<String, Object>();
		values.add("properties", DeploymentPropertiesFormat.formatDeploymentProperties(properties));
		//TODO: Do we need ResourceDeploymentResource?
		restTemplate.postForObject(uriTemplate, values, Object.class, name);
	}
@author Paul Harris
@author Gary Russell
@since 1.2
spring-xd-rest-client/src/main/java/org/springframework/xd/rest/client/impl/AbstractResourceTemplate.java