I was looking at how we put the resource's class name in the ObjectInstance - by getting the class name of the object being registered.
However, I think that's wrong. We should be getting the class name from the MBeanInfo.
I think the steps should be:
return new ObjectInstance(objectName, getMBeanInfo().getClassName())
Are there any objections to that?