server.addContext(context);
handler = new BrowserMobProxyHandler();
handler.setJettyServer(server);
handler.setShutdownLock(new Object());
client = new BrowserMobHttpClient();
client.prepareForBrowser();
handler.setHttpClient(client);
client.setDownstreamKbps(500 * 1024 * 8);
context.addHandler(handler);