}
@Override
public Event getEvent(long eventId) {
try {
Location location = new Location();
JournalEventStorage.MetaData metaData = metaDataList.get(eventId);
location.readExternal(ByteStreams.newDataInput(metaData.getLocation()));
return Event.fromByteBuffer(eventJournal.read(location));
} catch (IOException e) {
throw new RuntimeException(e);
}
}