TDI-30937: Fix the tuj with log4j enabled

https://jira.talendforge.org/browse/TDI-30937
Note:add new method