public Document deserialize(Document origDoc, ConvertData cd)
throws IOException {
Document doc = null;
PalmDocument palmDoc = null;
Enumeration e = cd.getDocumentEnumeration();
while(e.hasMoreElements()) {
palmDoc = (PalmDocument) e.nextElement();
PalmDB pdb = palmDoc.getPdb();
Record[] recs = pdb.getRecords();
decoder = new WSDecoder();
Wse[] b = decoder.parseDocument(recs);
String docName = palmDoc.getName();
doc = buildDocument(docName, b, origDoc);
}
return doc;
}