/** * Overrideable method to create the initial jetty Server. We need to draw a lot more configuration parameters * into WebConfig, but for now this gives users a hook to satisfy their needs. Bind a subclass to WebConfig, * subclass this WebServer, and change behavior to whatever you want. */ protected Server createServer(WebConfig webConfig) { return new Server(webConfig.getPort()); }