The deponent shall then be examined by the justice or notary, and may be examined by the parties, and the testimony may be taken in writing or by any recording device, including an electronic device, which will accurately preserve such testimony.
Massachusetts Legal Code