code: public static PackageIndex<Integer> createPackageIndex(String resourceName) {
          PackageIndex<Integer> packageIndex = new PackageIndex<Integer>();
  
          BufferedReader br = null;
          try {
              br = getLibertyTraceListReader(resourceName);
              addFiltersAndValuesToIndex(br, packageIndex);
          } catch (IOException e) {
              System.err.println("Unable to load " + resourceName);
          } finally {
              tryToCloseReader(br);
          }
  
          packageIndex.compact();
          return packageIndex;
      }
docs: Create the package index from the contents of the resource.
  
  @param resourceName The resource name to load the trace list from.