}
try {
if(id != null && !id.equals("") && !id.equals("0")){
per.setIdKpiPeriodicity(Integer.valueOf(id));
perDao.modifyPeriodicity(per);
logger.debug("Resource "+id+" updated");
JSONObject attributesResponseSuccessJSON = new JSONObject();
attributesResponseSuccessJSON.put("success", true);
attributesResponseSuccessJSON.put("responseText", "Operation succeded");
attributesResponseSuccessJSON.put("id", id);