Class homeClass = home.getClass();
Method method = homeClass.getMethod("getMBeanServer",new Class[] { } );
Object mbeanServerObject = method.invoke(home, new Object[] { } );
GenericMBeanServerProxy proxy = new GenericMBeanServerProxy(mbeanServerObject);
setStatsProxy(proxy);
this.mbeanServer = proxy.buildServerProxy();
} finally {
Thread.currentThread().setContextClassLoader(contextClassLoader);
}
}