autocomplete.addEventListener("onBlur", new EventListener() {
@Override
public void onEvent(Event event) {
if (autocomplete.getText().isEmpty()) {
autocomplete.clear();
CriterionDTO assignment = (CriterionDTO) row.getValue();
assignment.getCriterion().setCostCategory(null);
}
}
});