docs: protected void addListeners() {
      // Listen for result changes, including the one we monitor
      context.addResultListener(this);
      context.addVisualizationListener(this);
      // Listen for database events only when needed.
      if(task.has(UpdateFlag.ON_DATA)) {
        context.addDataStoreListener(this);
      }
    }