Cell nextCell = getCellByIndex(index);
if (nextCell == null) {
nextCell = getCellByIndex(getCellCount() - 1);
}
// add a single cell element to describe cells.
OdfName tableCellNameSpace = OdfName.newName(OdfDocumentNamespace.TABLE, "table-cell");
if (table.isUseRepeat()) {
TableTableCellElement newCell = (TableTableCellElement) OdfXMLFactory.newOdfElement(
(OdfFileDom) maRowElement.getOwnerDocument(), tableCellNameSpace);
newCell.setTableStyleNameAttribute(preCell.getStyleName());
if (count > 1) {