//
if (port != null) {
try {
ShellFactory factory = bootstrap.getContext().getPlugin(ShellFactory.class);
Shell shell = factory.create(null);
RemoteClient client = new RemoteClient(port, shell);
log.log(Level.INFO, "Callback back remote on port " + port);
client.connect();
client.getRunnable().run();
}
finally {
bootstrap.shutdown();
}
}