public RestHighLevelClient createClientV2() {
final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
// ...
}
That's definitely easier to read...
So please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.
Or use markdown style like:
```
CODE
```
This is the icon to use if you are not using markdown format:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.