String fullyQualifiedInProgressPath =
fullyQualifiedPathForLedger(nameForLedger(firstTxId, -1));
// TODO: try using a ThreadLocal here as well. Will test this once unit
// test is written for this method
Stat stat = new Stat();
EditLogLedgerMetadataWritable metadataWritable = readWritableFromZk(
fullyQualifiedInProgressPath, localWritable.get(), stat);
return metadataWritable == null ?
null : Versioned.of(stat.getVersion(), metadataWritable.get());
}