RemoteConnectorDescriptor rcd = Adaptable.Factory.getAdapter(rd, RemoteConnectorDescriptor.class, null);
if (rcd == null) {
throw new IllegalArgumentException(String.format("Present implementation supports remote connections via %s only", Connector.class.getName()));
}
sessionContext = ctx;
debug = new PropertyMarshal(ctx).getBoolean("hg4j.remote.debug", false);
remote = rcd.createConnector();
remote.init(rd /*sic! pass original*/, ctx, null);
}