The legendary composer was accused of copying commercial library music for 'Solomon.'

Batman v Superman composer Hans Zimmer is seeing his own dawn of justice, as a man who was suing him has not only dropped his lawsuit but also apologized and wrote him a check.

Composer Richard Friedman sued Zimmer in 2015, claiming the principal music from 12 Years a Slave copied his 2004 work entitled "To Our Fallen."

Friedman voluntarily dismissed his claims on Tuesday. In a Thursday statement, representatives for Zimmer say Friedman was faced with evidence that "resoundingly disproved his claims" and also the threat of sanctions for pursuing a frivolous lawsuit. In a letter of apology, according to the statement, Friedman told Zimmer he was "misguided and mistaken." He also apologized for relying on the erroneous findings of his expert, James DiPasquale, which Zimmer had disputed from the start.

In a statement to The Hollywood Reporter, Zimmer says he's very gratified by the results.

"I hope this case's successful conclusion will persuade other artists who face similar claims that justice can be achieved," Zimmer said. "I also hope that this dismissal will discourage other plaintiffs who may be motivated by recent high-profile music copyright lawsuits from filing meritless infringement claims."

Zimmer was represented by Bert Deixler, Philip Kelly, and Joshua Sussman of Kendall, Brill & Kelly and Candace Carlo of Kleinberg Lange Cuddy & Carlo.

Friedman was represented by Maxwell Blecher, who declined to comment.