code: protected XContentBuilder newBuilder() throws IndexException {
      try {
        XContentBuilder builder = XContentFactory.jsonBuilder();
  
        if (debug()) {
          builder = builder.prettyPrint();
        }
  
        return builder;
      } catch (final Throwable t) {
        throw new IndexException(t);
      }
    }
docs: /* ===================================================================
  package private methods
  ===================================================================