static String generateClientId(AdminClientConfig config) {
        String clientId = config.getString(AdminClientConfig.CLIENT_ID_CONFIG);
        if (!clientId.isEmpty())
            return clientId;
        return "adminclient-" + ADMIN_CLIENT_ID_SEQUENCE.getAndIncrement();
    }
Generate the client id based on the configuration.

@param config    The configuration

@return          The client id
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java