protected Properties buildConfiguration() throws SiteWhereException {
Properties config = new Properties();
config.put(ConsumerConfig.CLIENT_ID_CONFIG, getConsumerId());
config.put(ConsumerConfig.GROUP_ID_CONFIG, getConsumerGroupId());
config.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG,
getMicroservice().getInstanceSettings().getKafkaBootstrapServers());
config.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());
config.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, ByteArrayDeserializer.class.getName());
config.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest");
config.put(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, false);
return config;
}