org.wsdmdemo.service.weatherStation.TemperatureDocument prop_temperature = org.wsdmdemo.service.weatherStation.TemperatureDocument.Factory.newInstance();
org.wsdmdemo.service.weatherStation.TemperatureMetricType temperatureMetricType = prop_temperature.addNewTemperature();
temperatureMetricType.setDoubleValue(InteropConstants.DEFAULT_TEMP);
temperatureMetricType.setResetAt(resetAt);
resourceProperty.add(prop_temperature);
resourceProperty.setCallback(new TemperatureCallback());
// init the {http://wsdmdemo.org/service/weather-station}Humidity Resource Property
resourceProperty = resourcePropertySet.get(WeatherStationPropertyQNames.HUMIDITY);
org.wsdmdemo.service.weatherStation.HumidityDocument prop_humidity = org.wsdmdemo.service.weatherStation.HumidityDocument.Factory.newInstance();
org.wsdmdemo.service.weatherStation.HumidityMetricType humidityMetricType = prop_humidity.addNewHumidity();