code: public static void addProvidersToPathHandler(PathResourceProvider[] pathResourceProviders, PathHandler pathHandler) {
          if (pathResourceProviders != null && pathResourceProviders.length > 0) {
              for (PathResourceProvider pathResourceProvider : pathResourceProviders) {
                  if (pathResourceProvider.isPrefixPath()) {
                      pathHandler.addPrefixPath(pathResourceProvider.getPath(), new ResourceHandler(pathResourceProvider.getResourceManager()));
                  } else {
                      pathHandler.addExactPath(pathResourceProvider.getPath(), new ResourceHandler(pathResourceProvider.getResourceManager()));
                  }
              }
          }
      }
docs: Helper to add given PathResourceProviders to a PathHandler.
  
  @param pathResourceProviders List of instances of classes implementing PathResourceProvider.
  @param pathHandler The handler that will have these handlers added to it.