// 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 contexts
for (int i = 0; i < contexts.length; i++) {
values[0] = contexts[i];
mBServer.invoke(fname, operation,
values, removeContextTypes);
if (control != null) {
control.selectNode(null);
TreeControlNode node = control.findNode(contexts[i]);
if (node != null) {
node.remove();
} else {
getServlet().log("Missing TreeControlNode for " +
contexts[i]);