code: public void printMetadata() throws Exception {
  
          log.info("-----------------");
          log.info("RAFT Log Metadata");
          log.info("-----------------");
  
          byte[] firstAppendedBytes = db.get(FIRSTAPPENDED);
          log.info("First Appended: %d", fromByteArrayToInt(firstAppendedBytes));
          byte[] lastAppendedBytes = db.get(LASTAPPENDED);
          log.info("Last Appended: %d", fromByteArrayToInt(lastAppendedBytes));
          byte[] currentTermBytes = db.get(CURRENTTERM);
          log.info("Current Term: %d", fromByteArrayToInt(currentTermBytes));
          byte[] commitIndexBytes = db.get(COMMITINDEX);
          log.info("Commit Index: %d", fromByteArrayToInt(commitIndexBytes));
          Address votedForTmp =Util.objectFromByteBuffer(db.get(VOTEDFOR));
          log.info("Voted for: %s", votedForTmp);
      }
docs: Useful in debugging