public Event fire(String name, String payload) {
   Response<Event> response =
       consul.eventFire(name, payload, new EventParams(), QueryParams.DEFAULT);
   return response.getValue();
 }
 private void setLastIndex(Response<?> response) {
   Long consulIndex = response.getConsulIndex();
   if (consulIndex != null) {
     lastIndex.set(BigInteger.valueOf(consulIndex));
   }
 }