public static <K,V>List<KeyValue<K,V>> readKeyValues(String topic,Properties consumerConfig){
  return readKeyValues(topic,consumerConfig,UNLIMITED_MESSAGES);
}

public static < K , V > List < KeyValue < K , V > > readKeyValues ( String topic , Properties consumerConfig ) { return readKeyValues ( topic , consumerConfig , UNLIMITED_MESSAGES ) ; }
returns as many messages as possible from the topic until a ( currently hardcoded ) timeout is reached .
