contact.setResources(null);
}
try {
if(id != null && !id.equals("") && !id.equals("0")){
contact.setId(Integer.valueOf(id));
contactDao.update(contact);
logger.debug("Contact "+id+" updated");
JSONObject attributesResponseSuccessJSON = new JSONObject();
attributesResponseSuccessJSON.put("success", true);
attributesResponseSuccessJSON.put("responseText", "Operation succeded");
writeBackToClient( new JSONSuccess(attributesResponseSuccessJSON) );