add java and elasticsearch