private OptionalInt latestController() {
        return raftClient.leaderAndEpoch().leaderId();
    }
Checks that a configuration resource exists.
<p>
This object must be used only from the controller event thread.
metadata/src/main/java/org/apache/kafka/controller/QuorumController.java