final String name = var.getName();
for( int j = 0; j < numImages; j++ ) {
// Checking if the actual dataset is a product.
if (name.equals(productList[j])) {
// Updating the subDatasetsMap map
indexMap.put(new Range(j, j + 1), new APSDatasetWrapper(var));
break;
}
}
}
} catch (InvalidRangeException e) {