Source:
<code>public Handler getHandler(Config config) throws Exception { final String defaultTopic = config.getString("default_topic"); boolean propagate = false; try { propagate = config.getBoolean("propagate"); } catch (ConfigException.Missing ignored) if ("null".equals(defaultTopic)) { log.warn("default topic is \"null\"; messages will be discarded unless tagged with kt:"); } final Properties properties = new Properties(); for (Map.Entry<String, ConfigValue> kv : config.getConfig("producer_config").entrySet()) { properties.put(kv.getKey(), kv.getValue().unwrapped().toString()); } final String clientId = "plog_" + InetAddress.getLocalHost().getHostName() + "_" + KafkaProvider.clientId.getAndIncrement(); properties.put("client.id", clientId); log.info("Using producer with properties {}", properties); final ProducerConfig producerConfig = new ProducerConfig(properties); final Producer<byte[], byte[]> producer = new Producer<byte[], byte[]>(producerConfig); EncryptionConfig encryptionConfig = new EncryptionConfig(); try { Config encryption = config.getConfig("encryption"); encryptionConfig.encryptionKey = encryption.getString("key"); encryptionConfig.encryptionAlgorithm = encryption.getString("algorithm"); encryptionConfig.encryptionTransformation = encryption.getString("transformation"); encryptionConfig.encryptionProvider = encryption.getString("provider"); } catch (ConfigException.Missing ignored) { encryptionConfig = null; <START> log.error("Read encryption config failed"); <END> } return new KafkaHandler(clientId, propagate, defaultTopic, producer, encryptionConfig); }</code><technical_language>hmm, this is error right? write start application encryption</technical_language>

Target:
public Handler getHandler(Config config) throws Exception { final String defaultTopic = config.getString("default_topic"); boolean propagate = false; try { propagate = config.getBoolean("propagate"); } catch (ConfigException.Missing ignored) if ("null".equals(defaultTopic)) { log.warn("default topic is \"null\"; messages will be discarded unless tagged with kt:"); } final Properties properties = new Properties(); for (Map.Entry<String, ConfigValue> kv : config.getConfig("producer_config").entrySet()) { properties.put(kv.getKey(), kv.getValue().unwrapped().toString()); } final String clientId = "plog_" + InetAddress.getLocalHost().getHostName() + "_" + KafkaProvider.clientId.getAndIncrement(); properties.put("client.id", clientId); log.info("Using producer with properties {}", properties); final ProducerConfig producerConfig = new ProducerConfig(properties); final Producer<byte[], byte[]> producer = new Producer<byte[], byte[]>(producerConfig); EncryptionConfig encryptionConfig = new EncryptionConfig(); try { Config encryption = config.getConfig("encryption"); encryptionConfig.encryptionKey = encryption.getString("key"); encryptionConfig.encryptionAlgorithm = encryption.getString("algorithm"); encryptionConfig.encryptionTransformation = encryption.getString("transformation"); encryptionConfig.encryptionProvider = encryption.getString("provider"); } catch (ConfigException.Missing ignored) { encryptionConfig = null; } return new KafkaHandler(clientId, propagate, defaultTopic, producer, encryptionConfig); }