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