tds/src/main/java/thredds/featurecollection/InvDatasetFcGrib.java
public GribCollectionImmutable.Dataset getSingleDatasetOrByTypeName(GribCollectionImmutable gc, String typeName) {
    if (gc.getDatasets().size() == 1) return gc.getDataset(0);
    for (GribCollectionImmutable.Dataset ds : gc.getDatasets())
      if (ds.getType().toString().equalsIgnoreCase(typeName)) return ds;
    return null;
  }
public GribCollectionImmutable.Dataset getSingleDatasetOrByTypeName(GribCollectionImmutable gc, String typeName) {
    if (gc.getDatasets().size() == 1) return gc.getDataset(0);
    for (GribCollectionImmutable.Dataset ds : gc.getDatasets())
      if (ds.getType().toString().equalsIgnoreCase(typeName)) return ds;
    return null;
  }
kinda kludgey, but trying not keep URLs stable