class GrpcParser extends MessageProcessor implements RpcResponseParser {

  @Nullable static String service(String fullMethodName) {
    int index = fullMethodName.lastIndexOf('/');
    if (index == -1 || index == 0) return null;
    return fullMethodName.substring(0, index);
  }

}