Element object3 = new Element("object");
loadObject(object3,home+"users/"+credentials.getProperty("username")+"/device/"+object.getAttributeValue("resourceguid")+"/");
Properties entittyname = new Properties();
getExtendedAttributes(object3,entittyname);
object3.removeChildren("attribute");
object3.removeAttribute("resourceid");
object3.removeAttribute("entitytype");
transaction.addContent(object3);
Common.recurseDelete(home+"users/"+credentials.getProperty("username")+"/device/"+object.getAttributeValue("resourceguid")+"/",false);