if(objectInstances.size() != 0)
{
for (Iterator<ObjectName> itr = objectInstances.iterator(); itr.hasNext();)
{
ObjectName instance = (ObjectName)itr.next();
ServerInformation simb = (ServerInformation)
MBeanServerInvocationHandler.newProxyInstance(mbsc,
instance, ServerInformation.class, false);
int major = simb.getManagementApiMajorVersion();
int minor = simb.getManagementApiMinorVersion();
serverRegistry.setManagementApiVersion(new ApiVersion(major, minor));
}
return;