Allegheny County Court of Common Pleas Senior Judge R. Stanton Wettick Jr., who is presiding over the legal malpractice lawsuit stemming from the Philadelphia family courthouse deal, has ruled that an attorney’s corporate entity cannot recover $1.79 million from the First Judicial District for alleged unjust enrichment.

But, Wettick ruled, the entity could refile the second of its counterclaims under a breach of contract theory if it can show it incurred costs for which it has not yet been paid.