env.put(Context.INITIAL_CONTEXT_FACTORY, connectionSettings.getInitialContextName());
Context oc4jctx = new InitialContext(env);
Object obj = (ManagementHome) oc4jctx.lookup(connectionSettings.getJndiName());
ManagementHome mgmtHome = (ManagementHome) PortableRemoteObject.narrow(obj, ManagementHome.class);
Management oc4jmbs = mgmtHome.create();
GenericMBeanServerProxy proxy = new GenericMBeanServerProxy(getMBeanServer());
setStatsProxy(proxy);
this.mbeanServer = proxy.buildServerProxy();
this.mejb = oc4jmbs;