listModuleVersionsFromCache(dependency, result);
}
private void listModuleVersionsFromCache(DependencyMetaData dependency, BuildableModuleComponentVersionSelectionResolveResult result) {
ModuleVersionSelector requested = dependency.getRequested();
final ModuleIdentifier moduleId = getCacheKey(requested);
ModuleVersionsCache.CachedModuleVersionList cachedModuleVersionList = moduleVersionsCache.getCachedModuleResolution(delegate, moduleId);
if (cachedModuleVersionList != null) {
ModuleVersionListing versionList = cachedModuleVersionList.getModuleVersions();
Set<ModuleVersionIdentifier> versions = CollectionUtils.collect(versionList.getVersions(), new Transformer<ModuleVersionIdentifier, Versioned>() {
public ModuleVersionIdentifier transform(Versioned original) {