@Override
	public boolean delete(ModuleDefinition definition) {
		for (ModuleRegistry delegate : delegates) {
			if (delegate instanceof WritableModuleRegistry) {
				WritableModuleRegistry writableModuleRegistry = (WritableModuleRegistry) delegate;
				if (writableModuleRegistry.delete(definition)) {
					return true;
				}
			}
		}
		return false;
	}
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