@Override
	public ModuleDefinitionResource.Page list(RESTModuleType type) {
		String uriTemplate = resources.get("modules").toString();
		// TODO handle pagination at the client side
		uriTemplate = uriTemplate + "?size=10000" + ((type == null) ? "" : "&type=" + type.name());
		return restTemplate.getForObject(uriTemplate, ModuleDefinitionResource.Page.class);
	}
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