After he received the request, Barrack said, he turned to employees at his private equity fund, Colony Capital, to draft Trump's remarks.
Prosecutors allege that in doing so, Barrack was trying to cash in on his ties to Trump while acting as an unregistered foreign agent for the UAE.
Barrack testified that one of the points of the energy comments was to reassure foreign governments after a blistering speech Trump had given about foreign policy, in which he bashed China and Middle Eastern countries.
Barrack testified that he, indeed, ran the draft speech by his UAE contacts and wound up incorporating some of their suggestions.
But Trump and his campaign essentially threw out that version of the speech, Barrack said, in favor of one he considered "imbecilic."