docs: protected void initializeClient(JestClient client, String indexName, String defaultIndexName) {
          try {
              client.execute(new Health.Builder().build());
              Action<JestResult> action = new IndicesExists.Builder(indexName).build();
              // There was occasions where a race occurred here when multiple threads try to
              // create the index simultaneously. This caused a non-fatal, but annoying, exception.
              synchronized(AbstractClientFactory.class) {
                  JestResult result = client.execute(action);
                  if (!result.isSucceeded()) {
                      createIndex(client, indexName, defaultIndexName + "-settings.json"); //$NON-NLS-1$
                  }
              }
          } catch (Exception e) {
              throw new RuntimeException(e);
          }
      }