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