legacy/src/main/java/thredds/catalog/InvDataset.java
public InvAccess getAccess(thredds.catalog.ServiceType type) {
    for (InvAccess a : getAccess()) {
      InvService s = a.getService();
      if (s.getServiceType() == type)
        return a;
    }
    return null;
  }
public InvAccess getAccess(thredds.catalog.ServiceType type) {
    for (InvAccess a : getAccess()) {
      InvService s = a.getService();
      if (s.getServiceType() == type)
        return a;
    }
    return null;
  }
Get access element of the specified service type for this dataset.
If more than one, get the first one.

@param type find this ServiceType
@return InvAccess or null if there is not one.