if (_revision.equals(revision)) { return true; } if (_revision.startsWith("latest.")) { return true; } if (_revision.endsWith("+") && revision.startsWith(_revision.substring(0, _revision.length() - 1))) { return true; } return false;
return acceptRevision(_revision, revision);
    public boolean acceptRevision(String revision) {        if (_revision.equals(revision)) {            return true;        }        if (_revision.startsWith("latest.")) {            return true;        }        if (_revision.endsWith("+") && revision.startsWith(_revision.substring(0, _revision.length() - 1))) {            return true;        }        return false;    }