String pathStr = getPathStr(pname.getKeyProperty("path"));
Context context = (Context) host.findChild(pathStr);
context.setManager(manager);
} else if ((type != null) && (type.equals("DefaultContext"))) {
String hostName = pname.getKeyProperty("host");
DefaultContext defaultContext = null;
if (hostName == null) {
defaultContext = engine.getDefaultContext();
} else {
Host host = (Host)engine.findChild(hostName);
defaultContext = host.getDefaultContext();
}
if (defaultContext != null ){
manager.setDefaultContext(defaultContext);
defaultContext.setManager(manager);
}
}
// Return the corresponding MBean name
ManagedBean managed = registry.findManagedBean("StandardManager");