if (child instanceof BaseColumn && !(child instanceof ColumnGroup)) {
Components.generateIdIfNotSpecified(child);
columns.add((BaseColumn) child);
} else if (child instanceof Columns) {
Columns tableColumns = (Columns) child;
List<DynamicColumn> dynamicColumns = tableColumns.toColumnList(context);
columns.addAll(dynamicColumns);
} else if (child instanceof ColumnGroup) {
ColumnGroup tcg = (ColumnGroup) child;
columns.addAll(getColumnsFromList(context, tcg.getChildren()));
}