protected TreeNode getTreeForResource(String profile, ManageableResource resource)
{
try
{
ObjectName objName = ((MBeanResource)resource).getObjectName();
J2EEApplicationMBean appProxy = (J2EEApplicationMBean)
MBeanProxyExt.create (J2EEApplicationMBean.class, objName, getMBeanServer());
return createTreeNode
(
objName.getKeyProperty("name"), // name
"", // description
"images/EspressoMaker.gif", // Icon URL
"J2EEApp.jsp?ObjectName=" + encode (objName.toString ()), // Default URL
null,
null, // sub nodes
createModules (appProxy.getmodules()) // Sub-Resources
).setMasterNode(true);
}
catch (Exception e)
{