Object objectId = readEntity(input, false, true);
int versionNumber = (int) readVarLong(input);
ObjectId id;
if (table == null){
// this means the table was deleted
id = new NewObjectId(null);
}
else if (table.indexOf('.') > -1) {
id = ObjectId.idForObject(header == HEADER_ARRAY ? arraySource : objectSource, tableId + "-" + objectId
+ (historic ? "-v" + versionNumber : ""), true);
} else {