Service service = engine.getService();
name = new ObjectName(domain + ":type=Manager,path=" + path +
",host=" + host.getName() + ",service=" +
service.getName());
} else if (container == null) {
DefaultContext defaultContext = manager.getDefaultContext();
if (defaultContext != null) {
Container parent = defaultContext.getParent();
if (parent instanceof Engine) {
Service service = ((Engine)parent).getService();
name = new ObjectName(domain + ":type=DefaultManager,service=" +
service.getName());
} else if (parent instanceof Host) {