Update ElasticWriter.java