code: public BomFile parseBomFile(String bomPath) {
          BomFile bomFile = null;
          String json = null;
          try (InputStream is = new FileInputStream(bomPath)) {
              json = IOUtils.toString(is);
          } catch (FileNotFoundException e) {
              logger.error("file Not Found: {}", bomPath);
          } catch (IOException e) {
              logger.error("error getting file : {}", e.getMessage());
          }
  
          if (json != null) {
              try {
                  bomFile = parseBomFile(json, bomPath);
              } catch (Exception e) {
                  logger.debug("Invalid file {}", bomPath);
              }
          }
          return bomFile;
      }
docs: /* --- Public methods ---