int numThreads = 1;
String topic = escapeTopicName(name);
topicCountMap.put(topic, numThreads);
Decoder<byte[]> valueDecoder = new DefaultDecoder(null);
Decoder<Integer> keyDecoder = new IntegerEncoderDecoder();
Map<String, List<KafkaStream<Integer, byte[]>>> consumerMap = connector.createMessageStreams(
topicCountMap, keyDecoder, valueDecoder);
final KafkaStream<Integer, byte[]> stream = consumerMap.get(topic).iterator().next();