} else if (cursor instanceof Text) {
items.add(new SimpleText(cursor.toHtml()));
} else if (cursor instanceof org.htmlparser.Tag) {
processTag(nodes, current, items, (org.htmlparser.Tag) cursor);
} else {
throw new BrixException("Unknown node type " + cursor.getClass().getName());
}
}
}
catch (ParserException e) {
throw new BrixException("Couldn't parse node content: '" + node.getPath() + "'", e);
}
}