JBTM-1617. Move rebase code from narayana.sh to separate file
JBTM-1522 add logs to check the recovery module register
JBTM-1522 update to add log to find recovery manager is set when register the recovery module
JBTM-1522 update to check recovery manager until it is not null