code: public static Provider resourceProvider(String pathToResource, Charset encoding) throws IOException {
          ClassLoader classLoader = Provider.class.getClassLoader();
          return resourceProvider(classLoader, pathToResource, encoding);
      }
docs: Provide a Provider from the resource found in the current class loader with the provided encoding.<br/> As
  resource is accessed through a class loader, a leading "/" is not allowed in pathToResource