if(ds!=null){
String id = getAttributeAsString(DataSetConstants.ID);
try {
if(id != null && !id.equals("") && !id.equals("0")){
ds.setDsId(Integer.valueOf(id));
dsDao.modifyDataSet(ds);
logger.debug("Resource "+id+" updated");
JSONObject attributesResponseSuccessJSON = new JSONObject();
attributesResponseSuccessJSON.put("success", true);
attributesResponseSuccessJSON.put("responseText", "Operation succeded");
attributesResponseSuccessJSON.put("id", id);