private final AtomicBoolean initialized = new AtomicBoolean(false);
private final AtomicBoolean terminated = new AtomicBoolean(false);
private ActionListener<Void> listener;
public void execute(final ActionListener<Void> listener) {
this.listener = listener;
<BUG>final Date now = new Date();
final QueryBuilder queryBuilder =
QueryBuilders.filteredQuery(QueryBuilders.matchAllQuery(), FilterBuilders.rangeFilter(TIMESTAMP).from(lastChecked));</BUG>
lastChecked = now;
initialized.set(false);

private final AtomicBoolean initialized = new AtomicBoolean(false);
private final AtomicBoolean terminated = new AtomicBoolean(false);
private ActionListener<Void> listener;
public void execute(final ActionListener<Void> listener) {
this.listener = listener;
final Date now = new Date();
final QueryBuilder queryBuilder =QueryBuilders.boolQuery().filter(QueryBuilders.rangeQuery(TIMESTAMP).from(lastChecked));
lastChecked = now;
initialized.set(false);
