m.main();
}
public void main() throws IOException, InterruptedException {
Engine engine = new Engine(
headlessMode ? new CuiListener() : new GuiListener(),
urls, args.get(0), args.get(1));
if(tunnel!=null)
engine.setTunnel(tunnel);
if(credentials!=null)
engine.setCredentials(credentials);
engine.setNoReconnect(noReconnect);
engine.start();
engine.join();
}