code: public HttpUrl resolve(String link) {
          Builder builder = newBuilder(link);
          return builder != null ? builder.build() : null;
      }
docs: Returns the URL that would be retrieved by following {@code link} from this URL, or null if
  the resulting URL is not well-formed.