@Override
	public ModuleDefinitionResource uploadModule(String name, RESTModuleType type, Resource bytes, boolean force) throws IOException {
		String uriTemplate = resources.get("modules").toString() + "/{type}/{name}?force={force}";
		return restTemplate.postForObject(uriTemplate, bytes, ModuleDefinitionResource.class, type, name, force);
	}
Implementation of the Module-related part of the API.

@author Eric Bottard
@author Glenn Renfro
@author Mark Fisher
@author Gunnar Hillert
spring-xd-rest-client/src/main/java/org/springframework/xd/rest/client/impl/ModuleTemplate.java