OPINION OF THE COURT
ROBERTS, Justice.For more than 20 years, the Commonwealth has, pursuant to a 1954 court order, defrayed the costs of care of *540Alfred Downing, an incompetent committed to Farview State Hospital. The Commonwealth seeks to recover from the incompetent’s estate the cost of his maintenance since his commitment. The orphans’ court of Westmoreland County denied the Commonwealth’s claim. The Commonwealth appealed.1 We hold that the Commonwealth is bound by the unappealed and unmodified 1954 order and may not recover its expenditures from the estate. We affirm.
In April, 1954, Downing was arrested and charged with the murder of his wife. The Commonwealth did not prosecute him for the crime. Instead, upon the petition of the warden supervising Downing’s incarceration pending trial, the Court of Quarter Sessions appointed two doctors who examined Downing and found him to be psychotic with criminal tendencies. They recommended that Downing be committed to Farview State Hospital. The court adopted this recommendation and on June 3, 1954, committed Downing pursuant to the Mental Health Act of 1951.2 The commitment order provided inter alia:
“Now, June 3, 1954, it is ordered and directed that Alfred Downing be committed to the Farview State Hospital to be there detained and treated as an insane person at the expense of the Commonwealth of Pennsylvania until further order of the Court; and this shall be sufficient warrant for said commitment.”
In a subsequent order the court appointed a guardian for the incompetent’s estate.
In 1965, the Commonwealth filed a petition in the court of common pleas asserting that the estate was indebted to the Commonwealth for the cost of the incompe*541tent’s care since his commitment. The court transferred the claim to the orphans’ court. There the case languished until 1972, when the guardian filed a first and partial account. The court in its adjudication denied the Commonwealth’s claim.
The Mental Health Act of 1951, pursuant to which Downing was committed, provided that the committing court should determine at the time of commitment who was to bear the cost of the incompetent’s care.3 The statute thereby relieved the incompetent’s family and the guardian of his estate of the uncertainty as to liability for the incompetent’s maintenance.
The committing court was first to consider whether the means of the incompetent and of his family were sufficient to pay the maintenance of the incompetent in the institution.4 The court was then to decide whether the incompetent’s estate, his family, or the Commonwealth should bear the expense of his care and to frame an appropriate order for maintenance.5 Such an order was to have the effect of a judgment.6 If the court ordered the Commonwealth to maintain the patient and the Department of Revenue subsequently discovered that the estate of the incompetent or his family were financially capable of paying for the incompetent’s care, the Act provided a procedure by which the Commonwealth could petition the court for a modification of its order.7
In this case, the Commonwealth did not seek revision of the cost of maintenance provision of the commitment order. Nevertheless, it contends that the estate of the incompetent is liable for the cost of his care since commitment. The Commonwealth argues that at common *542law and in all mental health acts the estate of the incompetent is primarily liable for the incompetent’s maintenance. The Commonwealth further argues that no act of the Legislature has ever relieved the estate of this responsibility. It therefore concludes that the committing court’s order on cost of maintenance could not in any way release the estate from its liability.
Were the Commonwealth’s theory to prevail, it would in effect permit the Commonwealth to relitigate a 20-year old order. The Commonwealth failed to follow the statutory procedure for modification of the original order. If the Commonwealth believes that the order improperly disposed of the issue of Downing’s maintenance, its remedy is to seek a modification of the order. Until it obtains such a modification, the mandate of the court must be obeyed. The Commonwealth is thus precluded from recovering the cost of the incompetent’s maintenance incurred in compliance with that order. See Walker v. City of Birmingham, 388 U.S. 307, 87 S.Ct. 1824, 18 L.Ed.2d 1210 (1967); Philadelphia Marine Trade Association v. International Longshoremen’s Association, 453 Pa. 43, 308 A.2d 98 (1973). Any other result would deny the committing court’s order the finality mandated by the Act. Although the Act of 1951 has since been repealed, the validity of orders issued under that Act was in no sense undermined by the repeal.
The Commonwealth argues it was not a party to the commitment proceeding and, therefore, is not bound by the court’s direction to pay maintenance. In the circumstances of this case, we cannot agree.
The person petitioning the court for the commitment of another pursuant to the Act of 1951 must be viewed as a party to the commitment proceeding.8 In this case, the warden of the county jail, acting as custodian of the prisoner and performing a state function *543submitted the petition, and was therefore a party in his official capacity. He represented the Commonwealth. Moreover, the Commonwealth in compliance with the order of court, received, housed and maintained the incompetent in a state facility. Therefore, the Commonwealth is plainly bound by the court’s determination that the means of the incompetent were insufficient to support his care and that the Commonwealth must bear the cost. Restatement of Judgments § 85, comment a at 403 (1942). See Consumer Party v. Tucker, 364 F.Supp. 594 (E.D.Pa.1973).
We find no more convincing the Commonwealth’s argument that it had no notice of the proceeding. At the time of his commitment to the hospital, the Commonwealth was preparing to prosecute Downing for murder. The commitment was pursuant to the petition of the official charged with Downing’s custody pending trial. His commitment to Farview is part of the custody pending disposition of the criminal charge. On this record, any argument that the Commonwealth was without notice is meritless.
Decree affirmed. Costs on the Commonwealth.
EAGEN, J., filed a dissenting opinion in which POMEROY and MANDERINO, JJ., join.. Appellate Court Jurisdiction Act of 1970, Act of July 31, 1970, P.L. 673, art. II, § 202(3), 17 P.S. 211.202(3) (Supp.1974).
. Mental Health Act of 1951, Act of June 12, 1951, P.L. 533, § 101 et seq., repealed by Mental Health and Retardation Act of 1966, Act of October 20, 1966, P.L. 96, § 701, 50 P.S. § 4701 (1969).
. Id. §§ 701-706.
. Id. § 703(c).
. Id. § 703(a).
. Id. § 703(e).
. Id. § 705. See also id. § 703(d).
.. See id. §§ 311(b), 328 & 342.