A former New York City investment banker has been acquitted of charges he raped an Irish tourist at his Long Island rental home after meeting her at a Hamptons nightclub.

Suffolk County Court Judge Barbara Kahn issued the verdict Wednesday following three weeks of testimony in the non-jury trial.

Jason Lee, a former executive with Goldman Sachs, could have faced up to 25 years in prison.

The key witness in the trial was the now 22-year-old woman, who returned from Europe to testify.

She said the 38-year-old Lee was naked when he forced himself into a bathroom while she was changing clothes and sexually attacked her in August 2013.

Lee, who is married, did not testify at the trial. His lawyer said the sex had been consensual.