public RevValue getRevision(User user, byte[] key, byte[] revision) throws IOException {
try {
DatabaseEntry value = new DatabaseEntry();
OperationStatus status = db.get(null, makeValueKey(makeLookupBytes(user, key), revision), value, null);
if (OperationStatus.SUCCESS == status) {
return new RevValue(revision, value.getData());
}
return null;
} catch (DatabaseException e) {
throw new IOException(e);
}