broker = (broker == null) ? inetaddr.getAddress().getHostAddress() + ":5672" : broker;
Delegator fileserver = new Delegator(new FileServer(webroot + "/web", true));
Delegator qpidserver = new Delegator(new QpidServer(broker));
Authenticator authenticator = new Authenticator(this.getClass().getCanonicalName(), webroot + "/authentication");
server.setExecutor(Executors.newCachedThreadPool());
server.createContext("/", fileserver);
server.createContext("/ui", fileserver).setAuthenticator(authenticator);
server.createContext("/qpid/connection", qpidserver).setAuthenticator(authenticator);