docs: public boolean withRecord(final int key, final RecordWriter writer)
      {
          final int claimedOffset = claimRecord(key);
          if (claimedOffset == DID_NOT_CLAIM_RECORD)
          {
              return false;
          }
  
          try
          {
              writer.writeRecord(claimedOffset);
          }
          finally
          {
              commit(claimedOffset);
          }
  
          return true;
      }