private Object processTable(TableBox tableBox, TraversalSettings settings) throws JAXBException, Docx4JException { CTTable ctTable = DML_OBJECT_FACTORY.createCTTable(); ctTable.setTblGrid(createCtTableGrid(tableBox)); CTGraphicalObjectFrame graphicFrame = createTableGraphicFrame(); graphicFrame.getGraphic().getGraphicData().getAny().add(DML_OBJECT_FACTORY.createTbl(ctTable)); //traverse List<Object> children = traverseChildren(tableBox, settings); List<CTTableRow> tableRows = filterList(children, CTTableRow.class); ctTable.getTr().addAll(tableRows); if(tableRows.size() != children.size()) { LOG.warn("Some table data lost"); } return graphicFrame; }