 In this context, the party seeking the writ is treated on appeal like a plaintiff, the trial court becomes the defendant, and the opponent is designated as the "real party in interest".In Virginia, the Supreme Court has original jurisdiction under the state constitution for mandamus involving the Virginia courts.Elsewhere, including the Courts of New York, have replaced "mandamus" (as well as the other prerogative writs) with statutory procedures.