The court may determine, by a reference to a master or otherwise, whether any and what amount due on the mortgage is not in dispute, and may by an interlocutory decree order it paid to the mortgagee, or for his use to the clerk of the court.
Mass. Gen. Laws ch. 244, § 23