code: public Inventory newInstance(ClassLoader classLoader) {
          Iterator<Inventory> it = ServiceLoader.load(Inventory.class, classLoader).iterator();
          if (!it.hasNext()) {
              return null;
          } else {
              return it.next();
          }
      }
docs: Instantiates new {@link Inventory} by locating its service specification in the provided classloader.
  
  @param classLoader the classloader to use
  @return a new inventory instance or null if no service could be located
  @see java.util.ServiceLoader#load(Class, ClassLoader)