Message.debug("\tmodule revision kept as first found: "+mr.getId());
Message.debug("\tmodule revision kept as first found: "+mrDesc);
    public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException {        data = new ResolveData(data, doValidate(data));        ResolvedModuleRevision ret = null;                for (Iterator iter = _chain.iterator(); iter.hasNext();) {            DependencyResolver resolver = (DependencyResolver) iter.next();            LatestStrategy oldLatest = setLatestIfRequired(resolver, getLatestStrategy());            ResolvedModuleRevision mr = null;            try {                mr = resolver.getDependency(dd, data);            } finally {                if (oldLatest != null) {                    setLatest(resolver, oldLatest);                }            }            if (mr != null) {                if (!_returnFirst &&                         (!dd.getDependencyRevisionId().isExactRevision()                          || (ret == null || ret.getDescriptor().isDefault()))) {                    // check if latest is asked and compare to return the most recent                    if (ret == null) {                        Message.debug("\tmodule revision kept as first found: "+mr.getId());                        ret = mr;                    } else if (isAfter(mr, ret, data.getDate())) {                        Message.debug("\tmodule revision kept as younger: "+mr.getId());                        ret = mr;                    } else if (ret != null && !mr.getDescriptor().isDefault() && ret.getDescriptor().isDefault()) {                            Message.debug("\tmodule revision kept as better (not default): "+mr.getId());                            ret = mr;                    } else {                        Message.debug("\tmodule revision discarded as older: "+mr.getId());                    }                    if (dd.getDependencyRevisionId().isExactRevision() && !ret.getDescriptor().isDefault()) {                        Message.debug("\tmodule revision found and is not default: returning "+mr.getId());                        return resolvedRevision(mr);                    }                } else {                    return resolvedRevision(mr);                }            }        }        return resolvedRevision(ret);    }