// Add the new instance to its parent component
ObjectName pname = new ObjectName(parent);
Service service = getService(pname);
Engine engine = (Engine) service.getContainer();
Host host = (Host) engine.findChild(pname.getKeyProperty("host"));
host.addChild(context);
// Return the corresponding MBean name
ObjectName oname =
MBeanUtils.createObjectName(pname.getDomain(), context);
return (oname.toString());