/** Listen for the event that Value Sets were retrieved. */
  private void createValueSetsReceivedEvent() {
    Cts2Editor.EVENT_BUS.addHandler(
        ValueSetsReceivedEvent.TYPE,
        new ValueSetsReceivedEventHandler() {

          @Override
          public void onValueSetsReceived(ValueSetsReceivedEvent event) {
            DataClass[] dc = ValueSetsSearchXmlDS.getInstance().getTestData();
            updateRowsRetrieved(dc);
          }
        });
  }
 private void addEventHandlers() {
   Cts2Editor.EVENT_BUS.addHandler(
       SelectedEntityRemovedEvent.TYPE,
       new SelectedEntityRemovedEventHandler() {
         @Override
         public void onEntityRemoved(SelectedEntityRemovedEvent event) {
           String uri = event.getUri();
           Record[] records = getRecords();
           for (int i = 0; i < records.length; i++) {
             if (records[i].getAttribute("uri").equals(uri)) {
               records[i].setAttribute("add", false);
               refreshRow(i);
               break;
             }
           }
         }
       });
 }