@Override
protected ProxyController createProxyController(final ModelController proxiedController, final PathAddress proxyNodeAddress) {
try {
channels = new RemoteChannelPairSetup();
channels.setupRemoting(new ManagementChannelInitialization() {
@Override
public HandleableCloseable.Key startReceiving(Channel channel) {
final ManagementChannelHandler support = new ManagementChannelHandler(channel, channels.getExecutorService());
support.addHandlerFactory(new TransactionalModelControllerOperationHandler(proxiedController, support));
channel.addCloseHandler(new CloseHandler<Channel>() {