docs: private URL getCleanedUrl(URL originalUrl,
              String originalPath) {
          try {
              return new URL(StringUtils.cleanPath(originalPath));
          } catch (MalformedURLException ex) {
              // Cleaned URL path cannot be converted to URL
              // -> take original URL.
              return originalUrl;
          }
      }