legacy/src/main/java/thredds/catalog/InvDatasetImpl.java
public void addService(InvService service) {
    // System.out.println("--add dataset service= "+service.getName());
    servicesLocal.add(service);
    services.add(service);
    // add nested servers
    for (InvService nested : service.getServices()) {
      services.add(nested);
      // System.out.println("--add expanded service= "+nested.getName());
    }
    hashCode = 0;
  }
public void addService(InvService service) {
    // System.out.println("--add dataset service= "+service.getName());
    servicesLocal.add(service);
    services.add(service);
    // add nested servers
    for (InvService nested : service.getServices()) {
      services.add(nested);
      // System.out.println("--add expanded service= "+nested.getName());
    }
    hashCode = 0;
  }
public void addService ( InvService service ) { // System.out.println("--add dataset service= "+service.getName()); servicesLocal . add ( service ) ; services . add ( service ) ; // add nested servers for ( InvService nested : service . getServices ( ) ) { services . add ( nested ) ; // System.out.println("--add expanded service= "+nested.getName()); } hashCode = 0 ; }
Add a service to this dataset.

@param service add this service to the dataset
@deprecated add services only to catalog
Add a service to this dataset .