private RpcContext getContext(Object incomingContext, double requestTimeout) {
        if (incomingContext instanceof RpcContext)
            return (RpcContext)incomingContext;

        return new RpcContext(compressor, query,
                              ProtobufSerialization.serializeSearchRequest(query,
                                                                           Math.min(query.getHits(), maxHits),
                                                                           searcher.getServerId(), requestTimeout));
    }
{@link SearchInvoker} implementation using RPC

@author ollivir
container-search/src/main/java/com/yahoo/search/dispatch/rpc/RpcSearchInvoker.java