static HttpServer startServer() throws IOException {
// create a new server listening at port 8080
HttpServer server = HttpServer.create(new InetSocketAddress(getBaseURI().getPort()), 0);
// create a handler wrapping the JAX-RS application
HttpHandler handler = RuntimeDelegate.getInstance().createEndpoint(new JaxRsApplication(), HttpHandler.class);
// map JAX-RS handler to the server root
server.createContext(getBaseURI().getPath(), handler);
// start the server