code: Client createClient() throws InterruptedException {
  
      Client client = retryTemplate.execute(this::tryCreateClient);
      LOG.info("Connected to Elasticsearch cluster '{}'.", clusterName);
      return client;
    }
docs: Tries to create a Client connecting to cluster on the given adresses.
  
  @throws InterruptedException if this thread gets interrupted while trying to connect
  @throws MolgenisDataException if maximum number of retries is exceeded