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