// v3 due to meta file, version will be checked by backing store
if(metaDataExists) {
return new EventQueueBackingStoreFileV3(checkpointFile, capacity, name);
}
checkpointFileHandle = new RandomAccessFile(checkpointFile, "r");
int version = (int)checkpointFileHandle.readLong();
if(Serialization.VERSION_2 == version) {
if(upgrade) {
return upgrade(checkpointFile, capacity, name);
}
return new EventQueueBackingStoreFileV2(checkpointFile, capacity, name);