// Associate the backing JSO with this facade object.
SEARCH_CONTROL.bind(jsoPeer, this);
// Wire up the search callback every time
SEARCH_CONTROL.setSearchCompleteCallback(this, null,
new SearchControlCompleteCallback() {
@Override
public void onSearchResult(SearchControl control, Search search) {
assert control == SearchControl.this;
JsArray<? extends Result> results = search.getResults();
resultHandlers.fireResult(search, results);