ByteArrayInputStream bis=new ByteArrayInputStream(buf);
Document d= XmlUtil.newDocumentBuilder().parse(bis);
Element e=d.getDocumentElement();
return AddressBookImpl.decodeFromDomDocumentElement(e);
}catch(SAXParseException e1){
throw new SAXParseWrapperException(e1,buf);
}
}finally{
if(in!=null)try{in.close();}catch(Exception e){
ExceptionUtil.handleException(nc, e);
}