docs: public static Optional<Style> loadStyleAsURI(
              final ClientHttpRequestFactory clientHttpRequestFactory, final String styleRef,
              final Function<byte[], @Nullable Optional<Style>> loadFunction) {
          HttpStatus statusCode;
          final byte[] input;
  
          URI uri;
          try {
              uri = new URI(styleRef);
          } catch (URISyntaxException e) {
              uri = new File(styleRef).toURI();
          }
  
          try {
              final ClientHttpRequest request = clientHttpRequestFactory.createRequest(uri, HttpMethod.GET);
              try (ClientHttpResponse response = request.execute()) {
                  statusCode = response.getStatusCode();
                  input = IOUtils.toByteArray(response.getBody());
              }
          } catch (Exception e) {
              return Optional.empty();
          }
          if (statusCode == HttpStatus.OK) {
              return loadFunction.apply(input);
          } else {
              return Optional.empty();
          }
      }