final Object value = param.getValue();
if (value == null)
return;
List<?> values = (List<?>) value;
if (values != null && !values.isEmpty()) {
Set<NumberRange<Double>> verticalSubset = new DoubleRangeTreeSet();
for (Object val : values) {
if (val instanceof Number) {
verticalSubset.add(new NumberRange<Double>(Double.class, ((Number) val).doubleValue(), ((Number) val).doubleValue()));
} else if (val instanceof NumberRange) {
verticalSubset.add((NumberRange<Double>)val);
}
}
// TODO IMPROVE THAT TO DEAL ON RANGES
request.setVerticalSubset(verticalSubset);
}