public static OptimizingService.Iface getClient(String metastoreUrl) {
    return Objects.requireNonNull(CLIENT_POOLS.get(metastoreUrl)).iface();
  }
Client pool cache for different ams optimize server, sharing in jvm.
amoro-common/src/main/java/org/apache/amoro/client/OptimizingClientPools.java