public <T> T getConfiguredInstance(String key, Class<T> t) {
        return getConfiguredInstance(key, t, Collections.emptyMap());
    }
Get a configured instance of the give class specified by the given configuration key. If the object implements
Configurable configure it using the configuration.

@param key The configuration key for the class
@param t   The interface the class should implement
@return A configured instance of the class
clients/src/main/java/org/apache/kafka/common/config/AbstractConfig.java