public ObjectName[] getGlobalSingletons() {
final ObjectName[] all = queryAll();
final List<ObjectName> globalSingletons = new ArrayList<ObjectName>();
final ProxyFactory proxyFactory = getProxyFactory();
for (final ObjectName candidate : all) {
final MBeanInfo mbeanInfo = proxyFactory.getMBeanInfo(candidate);
if (mbeanInfo != null && AMXProxyHandler.globalSingleton(mbeanInfo)) {
globalSingletons.add(candidate);
}
}