if (ret == null || mr.getPublicationDate().after(ret.getPublicationDate())) {
if (ret == null || isAfter(mr, ret, data.getDate())) {
    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();            ResolvedModuleRevision mr = resolver.getDependency(dd, data);            if (mr != null) {                // check if latest is asked and compare to return the most recent                if (!_returnFirst && !dd.getDependencyRevisionId().isExactRevision()) {                    if (ret == null || mr.getPublicationDate().after(ret.getPublicationDate())) {                        Message.debug("\tmodule revision kept as younger: "+mr.getId());                        ret = mr;                    } else {                        Message.debug("\tmodule revision discarded as older: "+mr.getId());                    }                } else {                    return mr;                }            }        }        return ret;    }