public Int32 GetNumberOfPartitionsForTopic(String topic)
{
// Get number of partitions for specified topic
Int32 partitions;
if (!_configuration.NumberOfPartitionsPerTopic.TryGetValue(topic, out partitions))
partitions = _configuration.NumberOfPartitions;
return partitions;
}