CallbackHandler handler = null;
CallbackHandlerFactory handlerFactory = callbackFactoryInjector.getOptionalValue();
if (handlerFactory != null) {
handler = handlerFactory.getCallbackHandler(name);
}
connection = client.connectSync(handler);
this.channelClient = client;
channel = connection.openChannel(ManagementRemotingServices.DOMAIN_CHANNEL, OptionMap.EMPTY).get();
channel.addCloseHandler(new CloseHandler<Channel>() {
public void handleClose(final Channel closed, final IOException exception) {