public void ValidateStreamNumber(String topic, Int32 numberOfStreams)
{
if (numberOfStreams == 0)
throw new Exception(String.Format("You attempting to create zero streams for topic {0}. You cannot create zero number of streams.", topic));
var partitionsCount = GetNumberOfPartitionsForTopic(topic);
if (numberOfStreams > partitionsCount)
throw new Exception(String.Format(
"Cannot create {0} consumer streams for topic '{1}' because consumer configured to have {2} partition(s) for topic '{1}'",
numberOfStreams, topic, partitionsCount));
}