A man claimed that a Spanish tourist taunted him by calling him "gay and a Nazi" before he "lost it" and viciously attacked the man with a hammer in a New York City park, authorities said Tuesday.

Prosecutors revealed the alleged confession at the suspect's arraignment in Manhattan on attempted murder charges. They also said he was using an alias -- John Yoos -- when he was arrested late last month, and that his real name is Douglas Epp.

Epp, who remains in custody, pleaded not guilty on Tuesday to an indictment charging him with attempted murder, assault and weapons possession. His attorney declined to discuss the charges and the identity issue.

"This is not my demeanor, and I am ashamed this altercation occurred," Epp allegedly said, according to court papers. "Let me apologize to the couple, the police and the court for my erroneous reaction."

The tourist, Hugo Alejandre of Barcelona, was eating lunch with his girlfriend in a park near City Hall on July 30 when a man sitting next to them pulled out a hammer and started bashing Alejandre on the head and back with it, prosecutors said.

According to court papers made public Tuesday, Epp told investigators that he was in the area looking for a job when he sat down next to the couple and began reading a newspaper. He said he overheard them talking about him.

"They had some rude words," the papers quote him as saying. "They called me a gay and a Nazi . . . That guy called me a Nazi and I just lost it."

Epp claimed he saw a hammer sitting under a bench. He admitted grabbing it and hitting the victim on the head about 10 times, the papers say. Bystanders wrested the tool away; Alejandre was treated for a spinal fracture and deep cuts, prosecutors said.

On the latest episode of "Sarra Sounds Off," Newsday's Gregg Sarra and Matt Lindsay take a look top boys and girls basketball players on Long Island. Credit: Newsday

Sarra Sounds Off, Ep. 15: LI's top basketball players On the latest episode of "Sarra Sounds Off," Newsday's Gregg Sarra and Matt Lindsay take a look top boys and girls basketball players on Long Island.

On the latest episode of "Sarra Sounds Off," Newsday's Gregg Sarra and Matt Lindsay take a look top boys and girls basketball players on Long Island. Credit: Newsday

Sarra Sounds Off, Ep. 15: LI's top basketball players On the latest episode of "Sarra Sounds Off," Newsday's Gregg Sarra and Matt Lindsay take a look top boys and girls basketball players on Long Island.

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME