MultiValueMap<String, Object> values = new LinkedMultiValueMap<String, Object>();
values.add("name", name);
values.add("definition", defintion);
values.add("deploy", Boolean.toString(deploy));
StreamDefinitionResource stream = restTemplate.postForObject(resources.get("streams/definitions").expand(),
values,
StreamDefinitionResource.class);
return stream;
}