}
catch (ClassCastException e) {
throw new IllegalArgumentException("The swift client uses a channel that is not a NiftyClientChannel", e);
}
ClientRequestContext requestContext = new NiftyClientRequestContext(getInputProtocol(), getOutputProtocol(), channel, remoteAddress);
ClientContextChain context = new ClientContextChain(eventHandlers, methodHandler.getQualifiedName(), requestContext);
return methodHandler.invoke(channel,
inputTransport,
outputTransport,
inputProtocol,