code: @Override
      protected BomFile parseBomFile(String jsonText, String localFileName) {
          JSONObject json = new JSONObject(jsonText);
          String name = json.getString(Constants.NAME);
          String version = getVersion(json, localFileName);
          Map dependencies = getDependenciesFromJson(json, Constants.DEPENDENCIES);
          Map optionalDependencies = getDependenciesFromJson(json, OPTIONAL_DEPENDENCIES);
          String fileName = getFilename(name, version);
          String sha1 = Constants.EMPTY_STRING;
          String resolved = null;
          if(json.has(RESOLVED)) {
              resolved = json.getString(RESOLVED);
          }
  
          // optional fields for packageJson parser
          if (json.has(SHA1)) {
              sha1 = json.getString(SHA1);
          } else {
              logger.debug("shasum not found in file {}", localFileName);
          }
  
          RegistryType registryType = getRegistryType(resolved);
  
          BomFile bom = new BomFile(name, version, sha1, fileName, localFileName, dependencies, optionalDependencies, resolved, registryType);
          return bom;
      }
docs: /* --- Overridden methods ---