code: @Deprecated
  	protected static ArrayList<String> findJsonFiles(Path root, String subdir) throws IOException {
  		logger.debug("Looking for json files in classpath under [{}/{}].", root, subdir);
  
  		final ArrayList<String> jsonFiles = new ArrayList<>();
  		final Path indexDir = root.resolve(subdir);
  		if (Files.exists(indexDir)) {
  			Files.walkFileTree(indexDir, new SimpleFileVisitor<Path>() {
  				@Override
  				public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
  					// We have now files. They could be type, settings, templates...
  					String jsonFile = indexDir.relativize(file).toString();
  
  					if (jsonFile.equals(Defaults.IndexSettingsFileName) ||
  							jsonFile.equals(Defaults.UpdateIndexSettingsFileName)) {
  						logger.trace("ignoring: [{}]", jsonFile);
  						return CONTINUE;
  					}
  					jsonFile = jsonFile.substring(0, jsonFile.lastIndexOf(Defaults.JsonFileExtension));
  
  					jsonFiles.add(jsonFile);
  					logger.trace("json found: [{}]", jsonFile);
  					return CONTINUE;
  				}
  			});
  		} else {
  			logger.trace("[{}] does not exist in [{}].", subdir, root);
  		}
  
  		return jsonFiles;
  	}
docs: Find all types within an index
  @param root dir within the classpath
  @param subdir subdir name
  @return A list of found JSON files
  @deprecated Sounds like it's not used. We will remove it
  @throws IOException if something goes wrong