TUP-2207: update esb publish function to use the common class.
Merge pull request #11 from Talend/bugfix/5.6/TUP-2207_xsdInfiniteLoop

TUP-2207: update esb publish function to use the common class.