* and optionally removes the nodes' {@link SVGContext}.
*/
protected void disposeTree(Node node, boolean removeContext) {
if (node instanceof SVGOMElement) {
SVGOMElement elt = (SVGOMElement)node;
SVGContext ctx = elt.getSVGContext();
if (ctx instanceof BridgeUpdateHandler) {
BridgeUpdateHandler h = (BridgeUpdateHandler) ctx;
if (removeContext) {
elt.setSVGContext(null);
}