final int port = Integer.parseInt(args[0]);
final int corePort = Integer.parseInt(System.getenv("beaker_core_port"));
WebAppConfigPref webAppPref = new DefaultWebAppConfigPref(port);
Injector injector = Guice.createInjector(
new DefaultWebServerConfigModule(webAppPref),
new WebServerModule(),
new URLConfigModule(),
new SerializerModule(),
new GuiceCometdModule());
RShellRest rrest = injector.getInstance(RShellRest.class);