Upon the application of any person for a writ of estrepement, the court, before issuing the writ, shall cause the person whose interests may be affected thereby, to be notified of the pendency of the application, in such manner as the court shall deem proper, to the end that the person so to be affected by, as well as the person applying for the writ, may be heard in the premises. Upon the hearing, the court may, in its discretion, issue or refuse to issue the writ, in the same manner as courts grant or refuse to grant injunctions in like cases.
R.I. Gen. Laws § 34-14-7