public MBeanEntry get(ObjectName name)
throws InstanceNotFoundException
{
if (name == null)
throw new InstanceNotFoundException("null object name");
// Determine the domain and retrieve its entries
String domain = name.getDomain();
if (domain.length() == 0)
domain = defaultDomain;
String props = name.getCanonicalKeyPropertyListString();
Map mbeanMap = getMBeanMap(domain, false);
// Retrieve the mbean entry
Object o = null;
if (null == mbeanMap || null == (o = mbeanMap.get(props)))
throw new InstanceNotFoundException(name + " is not registered.");
// We are done
return (MBeanEntry) o;
}