public static void saveToDatabase(ZigBeeModule zbm, String zigbeeid) {
    WwoClient wwoclient = new WwoClient();
    zbm.setHumidity(wwoclient.getHumidity());
    SensorDataEntity sde = sdbean.getSensorData(zigbeeid);
    if (sde != null) sde.addSensorData(zbm);
    else {
      List<ZigBeeModule> zbmlist = new ArrayList<ZigBeeModule>();
      zbmlist.add(zbm);
      sde = new SensorDataEntity(zigbeeid, zbmlist);
    }

    sdbean.storeSensorData(sde);
  }
 public static void saveThresholdToDatabase(
     String lightMax, String tempMax, String lightMin, String tempMin) {
   sdbean.storeThresholdValue(new ThresholdValueSaver(lightMax, tempMax, lightMin, tempMin));
 }
 public static ThresholdValueSaver getThresholdValue() {
   return sdbean.getThresholdValue();
 }