Timberlake, Foxx and others paid tribute to RCA/Jive Label Group President Barry Weiss on Thursday as Weiss was honored by the UJA-Federation as the group’s music visionary of the year. Weiss has helped guide the careers of Britney Spears, Timberlake and ‘N Sync, the Backstreet Boys and many others during his career.

Timberlake was the master of ceremonies at the event, and offered plenty of Jewish humor.

“Who am I? I’m just another schmendrick who used to be in a goy band,” he said, to a room of laughter. “I don’t know what the hell that means either, but I’m pretty sure that’s supposed to be funny.”

“Ok, that’s enough schtick in the box from me,” was another Timberlake one-liner.

He also needled Weiss about his lukewarm reaction to one of Timberlake’s songs before it was released.

“If I remember correctly — and trust me I do — Barry said, ‘That song is not what people want from you, Justin … That song is not going to sell,’“ he said, before the speakers started to blast “SexyBack,” one of his biggest hits.

“I think he was just jealous, he wanted to be the one bringing sexy back.”

But in a serious moment, he called Weiss “one of the smartest, most hardworking, dedicated men working in the music business, one of the only people left in the music business who doesn’t want to be in the spotlight.”

Foxx performed, but didn’t sing his No. 1 hit “Blame It,” joking it wouldn’t be appropriate for the charity event.  Instead, he sang “Georgia on My Mind,” the classic hit from Ray Charles, whom Foxx won an Oscar portraying.

Others in attendance included Diane Sawyer and Chris Daughtry. The UJA-Federation of New York provides services to the needy throughout the world, and supports Jewish education programs.