System.setProperty("ambariapi.dbfile", mapArgs.get("db"));
ResourceConfig config = new PackagesResourceConfig("org.apache.ambari.server.api.services");
System.out.println("Starting server: http://localhost:" + mapArgs.get("port") + '/');
HttpServer server = HttpServerFactory.create("http://localhost:" + mapArgs.get("port") + '/', config);
server.start();
System.out.println("SERVER RUNNING: http://localhost:" + mapArgs.get("port") + '/');
System.out.println("Hit return to stop...");
System.in.read();
System.out.println("Stopping server");