code: public void addResultCollector(ResultCollector<?, DPO> resultCollector) {
          if (resultCollector != null) {
              addTrigger(resultCollector);
              addDataProvider(resultCollector);
          }
      }
docs: Adds the specified result collector to the triggers and data providers.
  
  @param resultCollector Result collector to be added.