@Override
	public ModuleMetadataResource.Page listDeployedModulesByModuleId(String moduleId) {
		Assert.isTrue(StringUtils.hasText(moduleId));
		String url = resources.get("runtime/modules").toString();
		String uriString = UriComponentsBuilder.fromUriString(url).queryParam("moduleId", moduleId).build().toUriString();
		return restTemplate.getForObject(uriString, ModuleMetadataResource.Page.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