class LiveSearchDropDown implements IsWidget {

    public void setSelectedItem(final TYPE key) {
        searchService.searchEntry(key,
                                  results -> {
                                      if(results.size() == 1) {
                                          LiveSearchEntry<TYPE> entry = results.get(0);
                                          changeCallbackEnabled = false;
                                          LiveSearchSelectorItem<TYPE> item = getSelectorItemForEntry(entry);
                                          selectionHandler.selectItem(item);
                                          item.select();
                                          view.clearItems();
                                          lastSearch = null;
                                          changeCallbackEnabled = true;
                                      }
                                  });
    }

    @Inject public  LiveSearchDropDown(View view,
                              ManagedInstance<LiveSearchSelectorItem<TYPE>> liveSearchSelectorItems);

}