processNewResult(result, result);
// For proxying events.
ResultUtil.findDatabase(result).addDataStoreListener(this);
// Add a result listener. Don't expose these methods to avoid inappropriate use.
addResultListener(new ResultListener() {
@Override
public void resultAdded(Result child, Result parent) {
processNewResult(getResult(), child);
}