public static void deleteDependencies(ModuleDependencyRepository moduleDependencyRepository,
			StreamDefinition streamDefinition) {
		validate(moduleDependencyRepository, streamDefinition);
		List<ModuleDefinition> moduleDefinitions = streamDefinition.getModuleDefinitions();
		for (ModuleDefinition moduleDefinition : moduleDefinitions) {
			moduleDependencyRepository.delete(moduleDefinition.getName(), moduleDefinition.getType(),
					"stream:" + streamDefinition.getName());
		}
	}
Delete the dependencies of each module to its containing stream.

@param moduleDependencyRepository deletes module dependencies
@param streamDefinition the stream definition.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/StreamDefinitionRepositoryUtils.java