this is duplicated between this interceptor and TxDistributionInterceptor (together with some functionality, see below). Better move it in BaseRpcInterceptor (or create a base class for these two).