@Override
        public Node provide() {
            LeastLoadedNode leastLoadedNode = client.leastLoadedNode(time.milliseconds());
            if (metadataRecoveryStrategy == MetadataRecoveryStrategy.REBOOTSTRAP
                    && !leastLoadedNode.hasNodeAvailableOrConnectionReady()) {
                metadataManager.rebootstrap(time.milliseconds());
            }

            return leastLoadedNode.node();
        }
An interface for providing a node for a call.
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java