private static void ValidateLines(string sessionId, char separator, string[][] lines)
{
foreach (var line in lines)
{
if (line.Length != 3)
{
var lineText = string.Join(new string(separator, 1), line);
throw new ApplicationException(string.Format("Invalid count of items in the line ({0}): \"{1}\"", sessionId, lineText));
}
}
}