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