code: public void onFeatureSelected(FeatureSelectedEvent event) {
  		Feature feature = event.getFeature();
  
  		// Only select if it is actually deselected:
  		boolean selected = false;
  		ListGridRecord[] selections = getSelection();
  		for (ListGridRecord selection : selections) {
  			if (selection.getAttribute(FIELD_NAME_FEATURE_ID).equals(feature.getId())) {
  				selected = true;
  				break;
  			}
  		}
  
  		// If deselected, find the correct row and select:
  		if (!selected) {
  			ListGridRecord[] records = this.getRecords();
  			for (int i = 0; i < records.length; i++) {
  				if (records[i].getAttribute(FIELD_NAME_FEATURE_ID).equals(feature.getId())) {
  					selectRecord(i);
  					break;
  				}
  			}
  		}
  	}
docs: This method is used only when selection is enabled (see setSelectionEnabled). When a feature selection event is
  sent out from the MapModel, check if we have that row deselected and select it.