driver-core/src/main/com/mongodb/MongoCompressor.java
public <T> MongoCompressor withProperty(final String key, final T value) {
        return new MongoCompressor(this, key, value);
    }
public <T> MongoCompressor withProperty(final String key, final T value) {
        return new MongoCompressor(this, key, value);
    }
Creates a new compressor from this compressor with the given property added to it.

@param key the property key
@param value the property value
@param <T> the property value type
@return the new compressor