this.channel = channel;
this.methods = methods;
this.eventHandlers = eventHandlers;
this.inputTransport = new TChannelBufferInputTransport();
this.outputTransport = new TChannelBufferOutputTransport();
TTransportPair transportPair = fromSeparateTransports(this.inputTransport, this.outputTransport);
TProtocolPair protocolPair = channel.getProtocolFactory().getProtocolPair(transportPair);
this.inputProtocol = protocolPair.getInputProtocol();
this.outputProtocol = protocolPair.getOutputProtocol();