cellAsXml.add(addCellProperties());
//TODO optimize here, addCellProperties call again DocumentFactory. sent as argument and use addElement instead
//add all the paragraphs
for (Iterator iter = paraList.iterator(); iter.hasNext();) {
Paragraph para = (Paragraph) iter.next();
cellAsXml.add(para.build());
}
return cellAsXml;
}