public KeyValueStoreManagerAdapter( KeyValueStoreManager manager, Map<String, Integer> keyLengths) { this.manager = manager; ImmutableMap.Builder<String, Integer> mb = ImmutableMap.builder(); if (keyLengths != null && !keyLengths.isEmpty()) mb.putAll(keyLengths); this.keyLengths = mb.build(); features = manager.getFeatures().clone(); features.supportsBatchMutation = false; }