private void setServices(Iterable<DatasetBuilder> dsIter) {
    for (DatasetBuilder dsb : dsIter) {
      for (Service s : dsb.getServices()) {
        addService(s);
      }
      setServices(dsb.getDatasets()); // recurse
    }
  }
private void setServices(Iterable<DatasetBuilder> dsIter) {
    for (DatasetBuilder dsb : dsIter) {
      for (Service s : dsb.getServices()) {
        addService(s);
      }
      setServices(dsb.getDatasets()); 
    }
  }
private void setServices ( Iterable < DatasetBuilder > dsIter ) { for ( DatasetBuilder dsb : dsIter ) { for ( Service s : dsb . getServices ( ) ) { addService ( s ) ; } setServices ( dsb . getDatasets ( ) ) ; // recurse } }
pull services out of the datasets and into the catalog
pull services out of the datasets and into the catalog