for (String tableName : tablesNames) {
TableManager tableManager = new TableManager(xComponent, tableName);
BandFinder bandFinder = new BandFinder(tableManager).find();
BandData band = bandFinder.getBand();
String bandName = bandFinder.getBandName();
int numberOfRowWithAliases = tableManager.findRowWithAliases();
if (band != null && numberOfRowWithAliases > -1) {
XTextTable xTextTable = tableManager.getXTextTable();
// try to select one cell without it workaround
int columnCount = xTextTable.getColumns().getCount();
if (columnCount < 2) {
xTextTable.getColumns().insertByIndex(columnCount, 1);
}
fillTable(band.getName(), band.getParentBand(), tableManager, xDispatchHelper, numberOfRowWithAliases);
// end of workaround ->
if (columnCount < 2) {
xTextTable.getColumns().removeByIndex(columnCount, 1);
}