HttpClient httpClient = new HttpClient();
httpClient.setConnectorType(HttpClient.CONNECTOR_SOCKET);
httpClient.start();
RHTTPClient client = new JettyClient(httpClient, new Address("localhost", plainConnector.getPort()), server.getContext().getContextPath() + "/gw", "proxy");
client.addListener(new ProxyListener(httpClient, client));
client.connect();
Runtime.getRuntime().addShutdownHook(new Shutdown(server, httpClient, client));
logger.info("{} started", GatewayProxyServer.class.getSimpleName());
}