public static List<ModuleDeploymentRequestsPath> getModulesForDeploymentUnit(
			Collection<ModuleDeploymentRequestsPath> requestedModulesPaths, String unitName) {
		List<ModuleDeploymentRequestsPath> pathsToReturn = new ArrayList<ModuleDeploymentRequestsPath>();
		for (ModuleDeploymentRequestsPath path : requestedModulesPaths) {
			if (path.getDeploymentUnitName().equals(unitName)) {
				pathsToReturn.add(path);
			}
		}
		return pathsToReturn;
	}
Return all the modules for a given deployment unit name.

@param requestedModulesPaths the collection of module deployment requests' paths
@param unitName the deployment unit (stream/job) name
@return the modules that correspond to the given deployment unit.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/core/ModuleDeploymentRequestsPath.java