k.setUdpValues(udpValues);
if(id != null && !id.equals("") && !id.equals("0")){
k.setKpiId(Integer.valueOf(id));
kpiDao.modifyKpi(k);
logger.debug("threshold "+id+" updated");
JSONObject attributesResponseSuccessJSON = new JSONObject();
attributesResponseSuccessJSON.put("success", true);
attributesResponseSuccessJSON.put("responseText", "Operation succeded");
attributesResponseSuccessJSON.put("id", id);