new ArrayBytes(revNumBytes));
}
public long getRevForTxn(String bag, long txnId) throws TxnNotFoundException {
long mapRevNum = map.getCurrentRevNum();
Range range = new Range(ArrayBytes.EMPTY_BYTES, null, null, true, true);
range.setBoundsAndExtractPrefix(
termForTxnBag(bag, 0),
termForTxnBag(bag, txnId));
QueryNode query = map.getRange(range, mapRevNum);
long revNum = 0;
if (query != null) {