if (resolver == null) { Message.debug("\tresolver not found: "+depMD.getResolverName()+" => trying to use default one for "+mrid); resolver = getDefaultResolver(); }
    public ResolvedModuleRevision findModuleInCache(ModuleRevisionId mrid, File cache, boolean validate) {        // first, check if it is in cache        if (mrid.isExactRevision()) {            File ivyFile = getIvyFileInCache(cache, mrid);            if (ivyFile.exists()) {                // found in cache !                try {                    ModuleDescriptor depMD = XmlModuleDescriptorParser.parseDescriptor(this, ivyFile.toURL(), validate);                    DependencyResolver resolver = (DependencyResolver)_resolversMap.get(depMD.getResolverName());                    if (resolver != null) {                        Message.debug("\tfound ivy file in cache for "+mrid+": "+ivyFile);                        return new DefaultModuleRevision(resolver, depMD, false, false);                    } else {                        Message.debug("\tresolver not found: "+depMD.getResolverName()+" => cannot use cached ivy file for "+mrid);                                                        }                } catch (Exception e) {                    // will try with resolver                    Message.debug("\tproblem while parsing cached ivy file for: "+mrid+": "+e.getMessage());                                                    }            } else {                Message.debug("\tno ivy file in cache for "+mrid+": tried "+ivyFile);            }        }        return null;    }