In 6.3 XContentBuilder.string() is removed. It was not deprecated in 6.2.4 Also, it is still mentioned in the documentation.