docs: public static boolean isAbsoluteUrl(String location) {
          if (location != null && location.length() > 0 && location.contains(":")) {
              try {
                  URI uri = new URI(location);
                  return uri.getScheme() != null;
              } catch (URISyntaxException e) {
                  // ignore invalid locations and consider not absolute
              }
          }
          return false;
      }