// Look up our MBeanFactory MBean
ObjectName fname =
new ObjectName(TomcatTreeBuilder.FACTORY_TYPE);
// Look up our tree control data structure
TreeControl control = (TreeControl)
session.getAttribute("treeControlTest");
// Remove the specified default contexts
for (int i = 0; i < defaultContexts.length; i++) {
values[0] = defaultContexts[i];
mBServer.invoke(fname, operation,
values, removeDefaultContextTypes);
if (control != null) {
control.selectNode(null);
TreeControlNode node = control.findNode(defaultContexts[i]);
if (node != null) {
node.remove();
} else {
getServlet().log("Missing TreeControlNode for " +
defaultContexts[i]);