ChannelProvider.init(this.globalConfiguration, this.channelFactory.getValue());
MBeanServer server = this.mbeanServer.getOptionalValue();
if (server != null) {
this.globalConfiguration.setExposeGlobalJmxStatistics(true);
this.globalConfiguration.setMBeanServerLookupInstance(new MBeanServerProvider(server));
this.globalConfiguration.setJmxDomain(server.getDefaultDomain());
this.defaultConfiguration.setExposeJmxStatistics(true);
} else {
this.globalConfiguration.setExposeGlobalJmxStatistics(false);
this.defaultConfiguration.setExposeJmxStatistics(false);