@Override public List<String> getSSTFilesFromMeta(Path localMetaPath) throws Exception { if (localMetaPath.toFile().isDirectory() || !localMetaPath.toFile().exists()) throw new InvalidPathException( localMetaPath.toString(), "Input path is either directory or do not exist"); List<String> result = new ArrayList<>(); JSONParser jsonParser = new JSONParser(); org.json.simple.JSONArray fileList = (org.json.simple.JSONArray) jsonParser.parse(new FileReader(localMetaPath.toFile())); fileList.forEach(entry -> result.add(entry.toString())); return result; }