private void readNextResponse() {
    String line = myScanner.nextLine();
    if (!SslIDEConfirmingTrustStore.IDE_DELEGATE_TRUST_MANAGER.equals(line)) return;
    line = myScanner.nextLine();
    if (!SslIDEConfirmingTrustStore.DELEGATE_RESPONSE.equals(line)) return;
    line = myScanner.nextLine();
    try {
      Integer key = Integer.parseInt(line);
      line = myScanner.nextLine();
      if (line.equals(SslIDEConfirmingTrustStore.DELEGATE_RESPONSE_ERROR)) {
        CompletableFuture<String> future = requests.get(key);
        if (future != null) future.completeExceptionally(new CertificateException());
      }
      else if (line.equals(SslIDEConfirmingTrustStore.DELEGATE_RESPONSE_OK)) {
        CompletableFuture<String> future = requests.get(key);
        if (future != null) future.complete("ok");
      }
    }
    catch (NumberFormatException ignore) {
    }
  }
private void readNextResponse()