@Override
	public void cleanBusResources(String name) {
		String rootUri = resources.get(this.resourceType + "/clean/rabbit").toString() + "/{name}";
		UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(rootUri);

		if (this.adminUri != null) {
			builder.queryParam("adminUri", this.adminUri);
		}

		if (this.password != null) {
			builder.queryParam("pw", this.password);
		}

		if (this.username != null) {
			builder.queryParam("user", this.username);
		}

		if (this.vhost != null) {
			builder.queryParam("vhost", this.vhost);
		}

		if (this.busPrefix != null) {
			builder.queryParam("busPrefix", this.busPrefix);
		}

		URI uri = builder.buildAndExpand(Collections.singletonMap("name", name)).toUri();
		restTemplate.delete(uri);
	}
@author Paul Harris
@author Gary Russell
@since 1.2
spring-xd-rest-client/src/main/java/org/springframework/xd/rest/client/impl/AbstractResourceTemplate.java