// Latest version can still be null if there are only non-versioned fields in the record
requestedVersion = latestVersion;
} else {
if (latestVersion == null || latestVersion < requestedVersion) {
// The requested version is higher than the highest existing version
throw new VersionNotFoundException(recordId, requestedVersion);
}
}
byte[] occBytes = result.getValue(RecordCf.DATA.bytes, RecordColumn.OCC.bytes);
return new Pair<Record, byte[]>(recdec.decodeRecord(recordId, requestedVersion, null, result, fieldTypes), occBytes);