Interceptor firstInterceptor = new RemoteTransportInterceptor(target);
firstInterceptor = new MarshalingInterceptor(firstInterceptor);
firstInterceptor = new NotificationRemoterInterceptor(firstInterceptor);
ProxyContainer clientContainer = new ProxyContainer(firstInterceptor);
return (MBeanServer) clientContainer.createProxy(
MBeanServer.class.getClassLoader(),
new Class[] { MBeanServer.class });
}
//TODO figure out if and how to use this method with only this one class.