public void mbeanRegistration() throws JMException, IOException {
checkMBeans(new ObjectName(handler.getObjectName()));
}
private void checkMBeans(ObjectName oName) throws MBeanException, IOException, ReflectionException {
MBeanServerExecutor servers = handler.getMBeanServerManager();
final List<Boolean> result = new ArrayList<Boolean>();
servers.each(oName, new MBeanServerExecutor.MBeanEachCallback() {
public void callback(MBeanServerConnection pConn, ObjectName pName)
throws ReflectionException, InstanceNotFoundException, IOException, MBeanException {
// Throws an InstanceNotFoundException
pConn.getObjectInstance(pName);
result.add(pConn.isRegistered(pName));