cdm/src/main/java/thredds/client/catalog/tools/DataFactory.java
private Access findAccessByServiceType(List<Access> accessList, ServiceType type) {
    for (Access a : accessList) {
      ServiceType stype = a.getService().getType();
      if (stype != null && stype.toString().equalsIgnoreCase(type.toString()))
        return a;
    }
    return null;
  }
private Access findAccessByServiceType(List<Access> accessList, ServiceType type) {
    for (Access a : accessList) {
      ServiceType stype = a.getService().getType();
      if (stype != null && stype.toString().equalsIgnoreCase(type.toString()))
        return a;
    }
    return null;
  }
private Access findAccessByServiceType ( List < Access > accessList , ServiceType type ) { for ( Access a : accessList ) { ServiceType stype = a . getService ( ) . getType ( ) ; if ( stype != null && stype . toString ( ) . equalsIgnoreCase ( type . toString ( ) ) ) return a ; } return null ; }
works against the accessList instead of the dataset list, so we can remove and try again
works against the accessList instead of the dataset list so we can remove and try again