if (path.equals(DomainRoot.PATH)) {
return getDomainRoot();
}
final PathnameParser parser = new PathnameParser(path);
final String parentPath = parser.parentPath();
//cdebug( "resolvePath: " + parser.toString() + ", parentPath = " + parentPath );
// fixed query based on the path, which will find all MBeans with that parent path
final String props = Util.makeProp(PARENT_PATH_KEY, Util.quoteIfNeeded(parentPath));
final ObjectName pattern = JMXUtil.newObjectNamePattern(getObjectName().getDomain(), props);
final Set<ObjectName> s = getMBeanServer().queryNames(pattern, null);
//cdebug( "resolvePath: " + path + " = query for parent path: " + pattern + " yields children: " + s.size() );
ObjectName objectName = null;
final String type = parser.type();
final String name = parser.name();
// find the matching child
for (final ObjectName child : s) {
if (type.equals(Util.getTypeProp(child))) {
final String nameProp = Util.getNameProp(child);