protected static BlockingServiceAndInterface getServiceAndInterface(
    final List<BlockingServiceAndInterface> services, final String serviceName) {
    for (BlockingServiceAndInterface bs : services) {
      if (bs.getBlockingService().getDescriptorForType().getName().equals(serviceName)) {
        return bs;
      }
    }
    return null;
  }
@param serviceName Some arbitrary string that represents a 'service'.
@param services    Available service instances
@return Matching BlockingServiceAndInterface pair
hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java