@Override
	public ModuleMetadataResource listDeployedModule(String containerId, String moduleId) {
		Assert.isTrue(StringUtils.hasText(containerId));
		Assert.isTrue(StringUtils.hasText(moduleId));
		String url = resources.get("runtime/modules").toString();
		MultiValueMap<String, String> values = new LinkedMultiValueMap<String, String>();
		values.add("containerId", containerId);
		values.add("moduleId", moduleId);
		String uriString = UriComponentsBuilder.fromUriString(url).queryParams(values).build().toUriString();
		return restTemplate.getForObject(uriString, ModuleMetadataResource.class);
	}
Implementation of the runtime containers/modules related part of the API.

@author Ilayaperumal Gopinathan
spring-xd-rest-client/src/main/java/org/springframework/xd/rest/client/impl/RuntimeTemplate.java