Before notice of any hearing leading to an adjudication is given by a Commonwealth agency (except the Pennsylvania Public Utility Commission), the agency shall submit the matter to its representative in the Department of Justice who shall pass upon the legality of the proposed action or defense. Failure of the agency to submit the matter to the department shall not invalidate any adjudication.
2 Pa.C.S. § 508