public final void addModuleRegistry(ModuleRegistry moduleRegistry) {
		DelegatingModuleRegistry cmr1 = application.pluginContext().getBean(DelegatingModuleRegistry.class);
		cmr1.addDelegate(moduleRegistry);
		DelegatingModuleRegistry cmr2 = application.adminContext().getBean(DelegatingModuleRegistry.class);
		if (cmr1 != cmr2) {
			cmr2.addDelegate(moduleRegistry);
		}
	}
Constructor useful for testing custom modules

@param application the {@link SingleNodeApplication}
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/test/SingleNodeIntegrationTestSupport.java