docs: public Map<String, ResourceList> getAllResourcesAsMap() {
          if (pathToWhitelistedResourcesCached == null) {
              final Map<String, ResourceList> pathToWhitelistedResourceListMap = new HashMap<>();
              for (final Resource res : getAllResources()) {
                  ResourceList resList = pathToWhitelistedResourceListMap.get(res.getPath());
                  if (resList == null) {
                      pathToWhitelistedResourceListMap.put(res.getPath(), resList = new ResourceList());
                  }
                  resList.add(res);
              }
              // Set atomically for thread safety
              pathToWhitelistedResourcesCached = pathToWhitelistedResourceListMap;
          }
          return pathToWhitelistedResourcesCached;
      }