return createTable(container, numRows, numCols, headerRowNumber, headerColumnNumber, 0, 0);
}
private static TableTableElement createTable(TableContainer container, int numRows, int numCols,
int headerRowNumber, int headerColumnNumber, double marginLeft, double marginRight) throws Exception {
Document document = getOwnerDocument(container);
OdfElement containerElement = container.getTableContainerElement();
OdfFileDom dom = (OdfFileDom) containerElement.getOwnerDocument();
double tableWidth = getTableWidth(container, marginLeft, marginRight);
boolean isTextDocument = document instanceof TextDocument;