legacy/src/main/java/thredds/catalog/InvDatasetImpl.java
public void setServicesLocal(java.util.List<InvService> s) {
    this.services = new ArrayList<>();
    this.servicesLocal = new ArrayList<>();

    for (InvService elem : s) {
      addService(elem);
    }
    hashCode = 0;
  }
public void setServicesLocal(java.util.List<InvService> s) {
    this.services = new ArrayList<>();
    this.servicesLocal = new ArrayList<>();

    for (InvService elem : s) {
      addService(elem);
    }
    hashCode = 0;
  }
public void setServicesLocal ( java . util . List < InvService > s ) { this . services = new ArrayList <> ( ) ; this . servicesLocal = new ArrayList <> ( ) ; for ( InvService elem : s ) { addService ( elem ) ; } hashCode = 0 ; }
Set the list of services attached specifically to this dataset.
Discard any previous servies.

@param s list of services.
Set the list of services attached specifically to this dataset . Discard any previous servies .