// create table rows
Double[][] cellValues = dataset.getLocalTableData();
for (int i = 0; i < numRows; i++) {
TableTableRowElement row = rows.newTableTableRowElement();
TableTableCellElement nameCell = row.newTableTableCellElement(0.0, "string");
nameCell.setOfficeValueTypeAttribute(OfficeValueTypeAttribute.Value.STRING.toString());
OdfTextParagraph paragraph = (OdfTextParagraph) nameCell.newTextPElement();
String[] cellContents = dataset.getLocalTableFirstColumn();
if (cellContents[i] != null) {
if (isFirstColumnAsLabel) {