for (Map.Entry<String, String> header : customHeaders.entrySet()) {
transport.setCustomHeader(header.getKey(), header.getValue());
}
}
TProtocol protocol = new TBinaryProtocol(transport);
try {
return clientClass.getDeclaredConstructor(TProtocol.class,
TProtocol.class, String.class).newInstance(protocol, protocol, token);
} catch (Throwable e) {
throw new RuntimeException("Couldn't create " + clientClass.getName()