throws FetionException
{
Element root = XMLHelper.build(response.getBody().toSendString());
Element element = XMLHelper.find(root, "/results/contacts/buddies/buddy");
if(element!=null && element.getAttributeValue("user-id")!=null) {
Buddy buddy = this.context.getFetionStore().getBuddyByUserId(Integer.parseInt(element.getAttributeValue("user-id")));
if(buddy!=null){
BeanHelper.toBean(Buddy.class, buddy, element);
buddy.setRelation(Relation.BUDDY);
context.getFetionStore().flushBuddy(buddy);
}else{
logger.warn("not found buddy in agree application response handler. Have you deleted her?");
}
}