#noissue: Add the "max retries" parameter.
#noissue: Create a boostrapper for loading the application.
#noissue: Remove unusued lines.
#noissue: Change the way for checking app parameters.

Refactor unit tests and change the way for checking parameters of the app and set default values when it doesn't exist.
#noissue: Code cleanup and register the wrapper as service.