public static void deleteDependencies(ModuleDependencyRepository moduleDependencyRepository,
			ModuleDefinition source,
			String target) {
		moduleDependencyRepository.delete(source.getName(), source.getType(), target);
		if (source.isComposed()) {
			List<ModuleDefinition> children = ((CompositeModuleDefinition)source).getChildren();
			for (ModuleDefinition child : children) {
				deleteDependencies(moduleDependencyRepository, child, target);
			}
		}
	}
Encapsulate shared functionality between implementations of ModuleDefinitionRepository that can't be done using
inheritance

@author Mark Pollack
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/module/support/ModuleDefinitionRepositoryUtils.java