// reuse the same logic as dimension selection to restrict the domain of possible values
final Filter filter = wms.getTimeElevationToFilter(times, elevations, resource);
ResourceInfo restrictedResource;
if (filter != null && !Filter.INCLUDE.equals(filter)) {
restrictedResource = new DecoratingFeatureTypeInfo(resource) {
@Override
public FeatureSource getFeatureSource(ProgressListener listener, Hints hints)
throws IOException {
FeatureSource fs = super.getFeatureSource(listener, hints);