public BrokerRegistration registration(int brokerId) {
        return brokerRegistrations.get(brokerId);
    }
Get a broker registration if it exists.

@param brokerId The brokerId to get the registration for
@return The current registration or null if the broker is not registered
metadata/src/main/java/org/apache/kafka/controller/ClusterControlManager.java