private void replaceTableSection(AbstractCellTable<?> table, TableSectionElement section,
SafeHtml html) {
String sectionName = StringCase.toLower(section.getTagName());
TableSectionElement newSection = convertToSectionElement(table, sectionName, html);
TableElement tableElement = table.getElement().cast();
tableElement.replaceChild(newSection, section);
if ("tbody".equals(sectionName)) {
((TableSectionChangeHandler) table).onTableBodyChange(newSection);
} else if ("thead".equals(sectionName)) {
((TableSectionChangeHandler) table).onTableHeadChange(newSection);
} else if ("tfoot".equals(sectionName)) {