Source:
<code><START> static public Map<String, String> generateSerdeConfig(List<TableDescriptor> tableDescriptors) { <END> Map<String, String> serdeConfigs = new HashMap<>(); Map<String, Serde> tableKeySerdes = new HashMap<>(); Map<String, Serde> tableValueSerdes = new HashMap<>(); HashSet<Serde> serdes = new HashSet<>(); tableDescriptors.stream() .filter(d -> d instanceof LocalTableDescriptor) .forEach(d -> { LocalTableDescriptor ld = (LocalTableDescriptor) d; tableKeySerdes.put(ld.getTableId(), ld.getSerde().getKeySerde()); tableValueSerdes.put(ld.getTableId(), ld.getSerde().getValueSerde()); }); serdes.addAll(tableKeySerdes.values()); serdes.addAll(tableValueSerdes.values()); SerializableSerde<Serde> serializableSerde = new SerializableSerde<>(); Base64.Encoder base64Encoder = Base64.getEncoder(); Map<Serde, String> serdeUUIDs = new HashMap<>(); serdes.forEach(serde -> { String serdeName = serdeUUIDs.computeIfAbsent(serde, s -> serde.getClass().getSimpleName() + "-" + UUID.randomUUID().toString()); serdeConfigs.putIfAbsent(String.format(SerializerConfig.SERDE_SERIALIZED_INSTANCE(), serdeName), base64Encoder.encodeToString(serializableSerde.toBytes(serde))); }); tableKeySerdes.forEach((tableId, serde) -> { String keySerdeConfigKey = String.format(JavaTableConfig.STORE_KEY_SERDE, tableId); serdeConfigs.put(keySerdeConfigKey, serdeUUIDs.get(serde)); }); tableValueSerdes.forEach((tableId, serde) -> { String valueSerdeConfigKey = String.format(JavaTableConfig.STORE_MSG_SERDE, tableId); serdeConfigs.put(valueSerdeConfigKey, serdeUUIDs.get(serde)); }); return serdeConfigs; }</code><technical_language>Nitpick: public static</technical_language>

Target:
public static Map<String, String> generateSerdeConfig(List<TableDescriptor> tableDescriptors) { Map<String, String> serdeConfigs = new HashMap<>(); Map<String, Serde> tableKeySerdes = new HashMap<>(); Map<String, Serde> tableValueSerdes = new HashMap<>(); HashSet<Serde> serdes = new HashSet<>(); tableDescriptors.stream() .filter(d -> d instanceof LocalTableDescriptor) .forEach(d -> { LocalTableDescriptor ld = (LocalTableDescriptor) d; tableKeySerdes.put(ld.getTableId(), ld.getSerde().getKeySerde()); tableValueSerdes.put(ld.getTableId(), ld.getSerde().getValueSerde()); }); serdes.addAll(tableKeySerdes.values()); serdes.addAll(tableValueSerdes.values()); SerializableSerde<Serde> serializableSerde = new SerializableSerde<>(); Base64.Encoder base64Encoder = Base64.getEncoder(); Map<Serde, String> serdeUUIDs = new HashMap<>(); serdes.forEach(serde -> { String serdeName = serdeUUIDs.computeIfAbsent(serde, s -> serde.getClass().getSimpleName() + "-" + UUID.randomUUID().toString()); serdeConfigs.putIfAbsent(String.format(SerializerConfig.SERDE_SERIALIZED_INSTANCE(), serdeName), base64Encoder.encodeToString(serializableSerde.toBytes(serde))); }); tableKeySerdes.forEach((tableId, serde) -> { String keySerdeConfigKey = String.format(JavaTableConfig.STORE_KEY_SERDE, tableId); serdeConfigs.put(keySerdeConfigKey, serdeUUIDs.get(serde)); }); tableValueSerdes.forEach((tableId, serde) -> { String valueSerdeConfigKey = String.format(JavaTableConfig.STORE_MSG_SERDE, tableId); serdeConfigs.put(valueSerdeConfigKey, serdeUUIDs.get(serde)); }); return serdeConfigs; }