@Override
	public List<ModuleDefinition> findDefinitions() {
		ArrayList<ModuleDefinition> definitions = new ArrayList<ModuleDefinition>();
		Set<String> alreadySeen = new HashSet<String>();
		for (ModuleRegistry delegate : delegates) {
			for (ModuleDefinition def : delegate.findDefinitions()) {
				if (alreadySeen.add(makeKeyFor(def))) {
					definitions.add(def);
				}
			}
		}
		return definitions;
	}
A {@link ModuleRegistry} that delegates to several ModuleRegistries, in order.

@author Eric Bottard
@author Glenn Renfro
@author David Turanski
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/module/DelegatingModuleRegistry.java