@Override
	public List<ModuleDefinition> findDefinitions(ModuleType type) {
		if (type == moduleType) {
			return Collections.singletonList((ModuleDefinition)ModuleDefinitions.simple(moduleName, moduleType, location));
		}
		else {
			return Collections.emptyList();
		}
	}
An implementation of {@link org.springframework.xd.dirt.module.ModuleRegistry} suitable to lookup a module that is at
the root of the classpath. In a typical source-form project (such as Maven), the module definition files will reside
in {@code src/main/resource/} (as in {@code src/main/resources/config/foo.xml}) and as such will end up at the "root"
of the classpath at runtime, with no way for a "normal" registry to infer the module type (and possibly name).

<p>This implementation is thus typically useful when writing tests for a module in the project that is defining that
very same project.
</p>

@author David Turanski
@author Eric Bottard
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/test/SingletonModuleRegistry.java