// get the listening port
int port = config.getInteger(ConfigConstants.WEB_FRONTEND_PORT_KEY,
ConfigConstants.DEFAULT_WEBCLIENT_PORT);
// start the server
WebInterfaceServer server = new WebInterfaceServer(config, port);
LOG.info("Starting web frontend server on port " + port + '.');
server.start();
server.join();
} catch (Throwable t) {
LOG.error("Unexpected exception: " + t.getMessage(), t);
}
}