server.setHandler(context);
server.start();
Desktop.getDesktop().browse(URI.create("http://localhost:" + connector.getPort() + "/"));
server.join();
}
private static int determineServerPort() {
final String port = System.getProperty("port");
return (port == null || "".equals(port)) ? DEFAULT_SERVER_PORT : Integer.parseInt(port);