TDI-30896: password is not encryted for resume log
https://jira.talendforge.org/browse/TDI-30896
TDI-30896 : a little improvement of the code