code: private FileBuffer deleteConfigurationFromMetadataBuffer(File metaFile, FileBuffer buffer)
    {
      long term = buffer.readLong(0);
      int vote = buffer.readInt(8);
  
      buffer.close();
      try {
        Files.delete(metaFile.toPath());
      } catch (IOException ex) {
        throw new RuntimeException(String.format("Failed to delete [%s].", metaFile), ex);
      }
  
      FileBuffer truncatedBuffer = FileBuffer.allocate(metaFile, 12);
      truncatedBuffer.writeLong(0, term).flush();
      truncatedBuffer.writeInt(8, vote).flush();
  
      return truncatedBuffer;
    }
docs: Note: used in backward compatibility code with pre 1.2.6 release. This can be removed in later releases.