diff --git a/src/main/java/no/nibio/vips/model/downcastmodel/DOWNCASTModel.java b/src/main/java/no/nibio/vips/model/downcastmodel/DOWNCASTModel.java index 9ac1f803e948206e5c6f2a5d1ca557aa91d34562..46cc5f54d9cdf2b5eaae151583ff9016bee62659 100755 --- a/src/main/java/no/nibio/vips/model/downcastmodel/DOWNCASTModel.java +++ b/src/main/java/no/nibio/vips/model/downcastmodel/DOWNCASTModel.java @@ -19,7 +19,6 @@ package no.nibio.vips.model.downcastmodel; -import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import java.util.Calendar; import java.io.IOException; @@ -236,7 +235,7 @@ public class DOWNCASTModel extends I18nImpl implements Model { ObjectMapper objectMapper = new ObjectMapper(); this.timeZone = TimeZone.getTimeZone((String) config.getConfigParameter("timeZone")); // Getting weather data - List<WeatherObservation> observations = objectMapper.convertValue(config.getConfigParameter("observations"), new TypeReference<List<WeatherObservation>>(){}); + List<WeatherObservation> observations = this.modelUtil.extractWeatherObservationList(config.getConfigParameter("observations")); for(WeatherObservation o:observations) { String paramCode = o.getElementMeasurementTypeId();