private ICommand NextCommand() { if (null == _currentLogStream || IsAtEnd(_currentLogStream)) { _currentLogStream = NextLogStream(); if (null == _currentLogStream) { return null; } } return (ICommand)_formatter.Deserialize(_currentLogStream); } }