How I can access Elasticsearch API using java sciript