docs: public static String parseNonceFromSnapshotFilename(String filename)
      {
          if (filename == null) {
              throw new IllegalArgumentException("Bad snapshot filename: " + filename);
          }
  
          // For the snapshot catalog
          if (filename.endsWith(".jar")) {
              return filename.substring(0, filename.indexOf(".jar"));
          }
          // for everything else valid in new format or volt1.2 or earlier table files
          else if (filename.indexOf("-") > 0) {
             return filename.substring(0, filename.indexOf("-"));
          }
          // volt 1.2 and earlier digest filename
          else if (filename.endsWith(".digest")) {
              return filename.substring(0, filename.indexOf(".digest"));
          }
          // Hashinator config filename.
          else if (filename.endsWith(HASH_EXTENSION)) {
              return filename.substring(0, filename.indexOf(HASH_EXTENSION));
          }
  
          throw new IllegalArgumentException("Bad snapshot filename: " + filename);
      }