MoxieProxy app = new MoxieProxy(config);
// Guard Moxie Proxy with BASIC authentication.
Authenticator guard = new Authenticator(app);
host.attachDefault(guard);
guard.setNext(app);
// start the shutdown monitor
if (config.getShutdownPort() > 0) {
Thread shutdownMonitor = new ShutdownMonitorThread(c, app, config);