throw new EsAccessException("Failed to convert " + target + " to JSON.", e);
}
}
protected RefreshResponse refresh() {
try {
<BUG>return ActionGetUtil.actionGet(getClient().admin().indices().prepareRefresh(index).execute());
</BUG>
} catch (Exception e) {
throw new EsAccessException("Failed to refresh.", e);
}

throw new EsAccessException("Failed to convert " + target + " to JSON.", e);
}
}
protected RefreshResponse refresh() {
try {
return getClient().get(c -> c.admin().indices().prepareRefresh(index).execute());
} catch (Exception e) {
throw new EsAccessException("Failed to refresh.", e);
