docs: public boolean storeDocument(String name, String type, String id,
              EsRequest doc) throws IOException {
          CloseableHttpClient client = HttpClients.createDefault();
          HttpPost method = new HttpPost(String.format("http://%s:%d/%s/%s/%s", host, port, name, type, id));
          try {
              StringEntity requestEntity = new StringEntity(doc.toString(), ContentType.APPLICATION_JSON);
              method.setEntity(requestEntity);
              CloseableHttpResponse resp = client.execute(method);
              int statusCode = resp.getStatusLine().getStatusCode();
              return statusCode == HttpStatus.SC_CREATED || statusCode == HttpStatus.SC_OK;
          } finally {
              method.releaseConnection();
          }
      }