MainController can operate in two WorkModes: Online or Batch, depending on parameter to constructor.