private static void sendClientRequest(Injector clientInjector, int serverPort) throws InterruptedException, ExecutionException {
ThriftClientManager clientManager = clientInjector.getInstance(ThriftClientManager.class);
ThriftClient<HeaderUsageExampleClient> clientFactory = clientInjector.getInstance(Key.get(new TypeLiteral<ThriftClient<HeaderUsageExampleClient>>() {
}));
HeaderUsageExampleClient client = clientFactory.open(new HeaderClientConnector(HostAndPort.fromParts("localhost", serverPort))).get();
TProtocol outputProtocol = clientManager.getOutputProtocol(client);
TTransport outputTransport = outputProtocol.getTransport();
if (outputTransport instanceof THeaderTransport) {
LOG.info("adding headers to next client request");