code: private static <T> Optional<T> loadFirst(final Class<T> service) {
          return of(ServiceLoader.load(service).iterator()).filter(Iterator::hasNext).map(Iterator::next);
      }
docs: TODO - JDK9 replace with ServiceLoader::loadFirst