}
// It's a bit of work to insert a node with the htmlparser module.
private void insertRowAfter(Row existingRow, Row childRow) {
NodeList rowNodes = tableNode.getChildren();
int index = rowNodes.indexOf(existingRow.rowNode);
Stack<Node> tempStack = new Stack<Node>();
while (rowNodes.size() - 1 > index) {
tempStack.push(rowNodes.elementAt(tableNode.getChildren().size() - 1));
rowNodes.remove(rowNodes.size() - 1);