String values[] = new String[1];
String operation = "removeValve";
try {
// Look up our tree control data structure
TreeControl control = (TreeControl)
session.getAttribute("treeControlTest");
// Remove the specified valves
for (int i = 0; i < valves.length; i++) {
values[0] = valves[i];
String domain = (new ObjectName(valves[i])).getDomain();
ObjectName fname = TomcatTreeBuilder.getMBeanFactory();
mBServer.invoke(fname, operation,
values, removeValveTypes);
if (control != null) {
control.selectNode(null);
TreeControlNode node = control.findNode(valves[i]);
if (node != null) {
node.remove();
} else {
getServlet().log("Missing TreeControlNode for " +
valves[i]);