String[] cellNames = xTextTable.getCellNames();
int colCount = xTextTable.getColumns().getCount();
String firstCellName = cellNames[row * colCount];
String lastCellName = cellNames[row * colCount + colCount - 1];
XTextTableCursor xTextTableCursor = xTextTable.createCursorByCellName(firstCellName);
xTextTableCursor.gotoCellByName(lastCellName, true);
// It works only if XCellRange was created via cursor. why????
if (firstCellName.equalsIgnoreCase(lastCellName)) {
XCell cell = as(XCellRange.class, xTextTable).getCellByPosition(0, row);
as(XSelectionSupplier.class, xController).select(new Any(new Type(XCell.class), cell));
} else {