LEDGE-218: make retry count and validation query configurable.
Implemented object oriented configuration.