Section 35A. If a complaint is received by a district court, or by a justice, associate justice or special justice thereof, or by a clerk, assistant clerk, temporary clerk or temporary assistant clerk thereof under section 32, 33 or 35, as the case may be, the person against whom such complaint is made, if not under arrest for the offense for which the complaint is made, shall, in the case of a complaint for a misdemeanor or a complaint for a felony received from a law enforcement officer who so requests, and may, in the discretion of any said officers in the case of a complaint for a felony which is not received from a law enforcement officer, be given an opportunity to be heard personally or by counsel in opposition to the issuance of any process based on such complaint unless there is an imminent threat of bodily injury, of the commission of a crime, or of flight from the commonwealth by the person against whom such complaint is made. The court or said officers referred to above shall consider the named defendant's criminal record and the records contained within the statewide domestic violence record keeping system maintained by the office of the commissioner of probation in determining whether an imminent threat of bodily injury exists. Unless a citation as defined in section 1 of chapter 90C has been issued, notice shall also be given of the manner in which he may be heard in opposition as provided herein.
The court, or said officer thereof, may upon consideration of the evidence, obtained by hearing or otherwise, cause process to be issued unless there is no probable cause to believe that the person who is the object of the complaint has committed the offense charged.
The term district court as used in this section shall include the Boston municipal court department and the juvenile court department.