private static HttpResponse<String> trySend(HttpClient client, HttpRequest request) throws IOException, StatsResponseException {
    return trySend(client, request, 0);
  }
private static HttpResponse<String> trySend(HttpClient client, HttpRequest request)