// Add the new Valve to our tree control node
TreeControl control = (TreeControl)
session.getAttribute("treeControlTest");
if (control != null) {
TreeControlNode parentNode = control.findNode(parentNodeName);
if (parentNode != null) {
String nodeLabel =
"Valve for " + parentNode.getLabel();
String encodedName =
URLEncoder.encode(vObjectName);
TreeControlNode childNode =
new TreeControlNode(vObjectName,
"Valve.gif",
nodeLabel,
"EditValve.do?select=" + encodedName +
"&nodeLabel=" + URLEncoder.encode(nodeLabel) +
"&parent=" + URLEncoder.encode(parentNodeName),