New South Wales Consolidated Regulations(cf SCR Part 23, rule 4 (b) and (d))
The court may determine any question arising under these rules (including any
question of privilege) and, for that purpose:
(a) may inspect any document in relation to which such a question arises, and
(b) if the document is not before the court, may order that the document be produced to the court for inspection.