role.setIsAbleToSendMail(sendMail);
try {
String id = getAttributeAsString(ID);
if(id != null && !id.equals("") && !id.equals("0")){
role.setId(Integer.valueOf(id));
roleDao.modifyRole(role);
logger.debug("Role "+id+" updated");
JSONObject attributesResponseSuccessJSON = new JSONObject();
attributesResponseSuccessJSON.put("success", true);
attributesResponseSuccessJSON.put("responseText", "Operation succeded");
writeBackToClient( new JSONSuccess(attributesResponseSuccessJSON) );