}
for (Match match : mainTable.getMatches()) {
if (subTable.getRow(match.getHomeTeam()) != null && subTable.getRow(match.getGuestTeam()) != null)
subTable.addMatch(match);
}
subTable.refresh();
if (mainTable.isShowSubTables()) {
ByteArrayOutputStream byteArrayStream = new ByteArrayOutputStream();
PrintStream printStream = new PrintStream(byteArrayStream);
subTable.print(printStream, true);
mainTable.addDumpedSubTable(byteArrayStream.toString());