void waitForResponse(Integer key) throws CertificateException {
    try {
      requests.get(key).get();
    }
    catch (InterruptedException e) {
      throw new RuntimeException(e);
    }
    catch (ExecutionException e) {
      throw new CertificateException(e.getMessage());
    }
  }
void waitForResponse(Integer key)