public static HBaseProtos.VersionInfo getCurrentClientVersionInfo() {
    return RpcServer.getCurrentCall().map(RpcCallContext::getClientVersionInfo)
      .orElse(NonCallVersion.get());
  }
Returns the versionInfo extracted from the current RpcCallContext
hbase-server/src/main/java/org/apache/hadoop/hbase/client/VersionInfoUtil.java