try {
final ProtocolChannelClient.Configuration configuration = ProtocolConfigurationFactory.create(clientConfiguration);
// TODO move the endpoint creation somewhere else?
endpoint = Remoting.createEndpoint("management-client", OptionMap.EMPTY);
endpoint.addConnectionProvider("remote", new RemoteConnectionProviderFactory(), OptionMap.EMPTY);
configuration.setEndpoint(endpoint);
final ProtocolChannelClient setup = ProtocolChannelClient.create(configuration);
strategy = ManagementClientChannelStrategy.create(setup, channelAssociation, clientConfiguration.getCallbackHandler(),