}
IBodyElement tableEnd = bodyIterator.next();
if (!isOrcaTableEnd(tableEnd)) {
throw new OrcaExpressionInvalidFormatException();
}
DocXTableRenderer tableRenderer = new DocXTableRenderer(tableElement, this, element, context);
tableRenderer.render();
// we need to iterate each cell only if it has table
for (XWPFTableRow row : ((XWPFTable) tableElement).getRows()) {
for (XWPFTableCell cell : row.getTableCells()) {
int rowindex = ((XWPFTable) tableElement).getRows().indexOf(row);
int colindex = row.getTableCells().indexOf(cell);
Map<String, Object> cellContext = tableRenderer.getCellContext(rowindex, colindex);
renderBody(cell, cellContext);
}
}
// we are adding the position of table meta tag paragraph for remove
removingBodyElements.add(body.getBodyElements().indexOf(element));