private static <V extends BaseVersionRange> Features<V> fromFeaturesMap(
        Map<String, Map<String, Short>> featuresMap, MapToBaseVersionRangeConverter<V> converter) {
        return new Features<>(featuresMap.entrySet().stream().collect(
            Collectors.toMap(
                Map.Entry::getKey,
                entry -> converter.fromMap(entry.getValue()))));
    }
Convert the map representation of an object of type <V>, to an object of type <V>.

@param  baseVersionRangeMap   the map representation of a BaseVersionRange object.

@return                       the object of type <V>
clients/src/main/java/org/apache/kafka/common/feature/Features.java