legacy/src/main/java/ucar/nc2/thredds/ThreddsDataFactory.java
private InvAccess findAccessByServiceType(List<InvAccess> accessList, ServiceType type) {
    for (InvAccess a : accessList) {
      if (type.toString().equalsIgnoreCase(a.getService().getServiceType().toString()))
        return a;
    }
    return null;
  }
private InvAccess findAccessByServiceType(List<InvAccess> accessList, ServiceType type) {
    for (InvAccess a : accessList) {
      if (type.toString().equalsIgnoreCase(a.getService().getServiceType().toString()))
        return a;
    }
    return null;
  }
private InvAccess findAccessByServiceType ( List < InvAccess > accessList , ServiceType type ) { for ( InvAccess a : accessList ) { if ( type . toString ( ) . equalsIgnoreCase ( a . getService ( ) . getServiceType ( ) . 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