code: private void writeVersion(VectorClock newClock) {
          File versionFile = getVersionFile();
          try {
              if(!versionFile.exists() || versionFile.delete()) {
                  String hexCode = new String(Hex.encodeHex(newClock.toBytes()));
                  FileUtils.writeStringToFile(versionFile, hexCode, "UTF-8");
                  this.cachedVersion = newClock;
              }
          } catch(Exception e) {
              throw new VoldemortException("Failed to write Version for the current file :"
                                           + getName(), e);
          }
      }
docs: Write a new Vector clock stored in '${name}.version' file