(1) Subject to the provisions of any law for the time being in force, a judge, magistrate or other persons act in judicially shall also be liable for contempt of his own court or of any other court in the same manner as any other individual is liable and the provisions of this Act, so far as may be, apply accordingly.