Source:
public Map<SchemaTableName, KafkaTopicDescription> get() { ImmutableMap.Builder<SchemaTableName, KafkaTopicDescription> tableDefintionBuilder = ImmutableMap.builder(); log.debug("Loading kafka table definitions from %s", tableDescriptionDir.getAbsolutePath()); try { for (File file : listFiles(tableDescriptionDir)) { if (file.isFile() && file.getName().endsWith(".json")) { KafkaTopicDescription table = topicDescriptionCodec.fromJson(readAllBytes(file.toPath())); String schemaName = table.getSchemaName().orElse(defaultSchema); log.debug("Found Kafka Table definition for %s.%s: %s", schemaName, table.getTableName(), table); tableDefintionBuilder.put(new SchemaTableName(schemaName, table.getTableName()), table); } } final Map<SchemaTableName, KafkaTopicDescription> tableDefinitions = tableDefintionBuilder.build(); log.debug("Loaded Table definitions: %s", tableDefinitions.keySet()); Map<SchemaTableName, KafkaTopicDescription> builder = new HashMap<>(); tableNames.stream() .forEach(definedTable -> { SchemaTableName tableName = parseTableName(definedTable); log.debug("Created dummy Table definition for %s", tableName); builder.put(tableName, new KafkaTopicDescription( tableName.getTableName(), Optional.ofNullable(tableName.getSchemaName()), definedTable, Optional.of(new KafkaTopicFieldGroup(DummyRowDecoder.NAME, Optional.empty(), ImmutableList.of())), Optional.of(new KafkaTopicFieldGroup(DummyRowDecoder.NAME, Optional.empty(), ImmutableList.of())))); }); builder.putAll(tableDefinitions); return builder; } catch (IOException e) { log.warn(e, "Error: "); throw new UncheckedIOException(e); } }

Target:
public Map<SchemaTableName, KafkaTopicDescription> get() { ImmutableMap.Builder<SchemaTableName, KafkaTopicDescription> tableDefinitionBuilder = ImmutableMap.builder(); log.debug("Loading kafka table definitions from %s", tableDescriptionDir.getAbsolutePath()); try { for (File file : listFiles(tableDescriptionDir)) { if (file.isFile() && file.getName().endsWith(".json")) { KafkaTopicDescription table = topicDescriptionCodec.fromJson(readAllBytes(file.toPath())); String schemaName = table.getSchemaName().orElse(defaultSchema); log.debug("Found Kafka Table definition for %s.%s: %s", schemaName, table.getTableName(), table); tableDefinitionBuilder.put(new SchemaTableName(schemaName, table.getTableName()), table); } } Map<SchemaTableName, KafkaTopicDescription> tableDefinitions = tableDefinitionBuilder.build(); log.debug("Loaded Table definitions: %s", tableDefinitions.keySet()); Map<SchemaTableName, KafkaTopicDescription> builder = new HashMap<>(); for (String definedTable : tableNames) { SchemaTableName tableName = parseTableName(definedTable); log.debug("Created dummy Table definition for %s", tableName); builder.put(tableName, new KafkaTopicDescription( tableName.getTableName(), Optional.ofNullable(tableName.getSchemaName()), definedTable, Optional.of(new KafkaTopicFieldGroup(DummyRowDecoder.NAME, Optional.empty(), ImmutableList.of())), Optional.of(new KafkaTopicFieldGroup(DummyRowDecoder.NAME, Optional.empty(), ImmutableList.of())))); } builder.putAll(tableDefinitions); return builder; } catch (IOException e) { log.warn(e, "Error: "); throw new UncheckedIOException(e); } }