code: private File getTarFile(String name) {
          File hexCache = new File(dotHexCachePath);
          File[] files = hexCache.listFiles(new HexFileNameFilter(name));
          if (files != null && files.length > 0) {
              Arrays.sort(files, Collections.reverseOrder());
              return files[0];
          }
          logger.warn("Couldn't find tar file of {}", name);
          return null;
      }
docs: and then finding the most recent one (according to the version)