Section 10. (a) Upon or after an adjudication or voluntary acknowledgment of paternity, the court may award custody to the mother or the father or to them jointly or to another suitable person as hereafter further specified as may be appropriate in the best interests of the child.
In awarding custody to one of the parents, the court shall, to the extent possible, preserve the relationship between the child and the primary caretaker parent. The court shall also consider where and with whom the child has resided within the six months immediately preceding proceedings pursuant to this chapter and whether one or both of the parents has established a personal and parental relationship with the child or has exercised parental responsibility in the best interests of the child.
In awarding the parents joint custody, the court shall do so only if the parents have entered into an agreement pursuant to section eleven or the court finds that the parents have successfully exercised joint responsibility for the child prior to the commencement of proceedings pursuant to this chapter and have the ability to communicate and plan with each other concerning the child's best interests.
(b) Prior to or in the absence of an adjudication or voluntary acknowledgment of paternity, the mother shall have custody of a child born out of wedlock. In the absence of an order or judgment of a probate and family court relative to custody, the mother shall continue to have custody of a child after an adjudication of paternity or voluntary acknowledgment of parentage.
(c) If either parent is dead, unfit or unavailable or relinquishes care of the child or abandons the child and the other parent is fit to have custody, that parent shall be entitled to custody.
(d) If a person who is not a parent of the child requests custody, the court may order custody to that person if it is in the best interests of the child and if the written consent of both parents or the surviving parent is filed with the court. Such custody may also be ordered if it is in the best interests of the child and if both parents or the surviving parent are unfit to have custody or if one is unfit and the other files his written consent in court.
(e) In issuing any temporary or permanent custody order, the probate and family court shall consider evidence of past or present abuse toward a parent or child as a factor contrary to the best interest of the child. For the purposes of this section, ''abuse'' shall mean the occurrence of one or more of the following acts between a parent and the other parent or between a parent and child: (a) attempting to cause or causing bodily injury; or (b) placing another in reasonable fear of imminent bodily injury. ''Serious incident of abuse'' shall mean the occurrence of one or more of the following acts between a parent and the other parent or between a parent and child: (a) attempting to cause or causing serious bodily injury; (b) placing another in reasonable fear of imminent serious bodily injury; or (c) causing another to engage involuntarily in sexual relations by force, threat or duress. For purposes of this section, ''bodily injury'' and ''serious bodily injury'' shall have the same meanings as provided in section 13K of chapter 265. For the purposes of this section, if the child was conceived during the commission of a rape and the parent was convicted of said rape, under sections 22 to 23B, inclusive, of chapter 265 or section 2, 3, 4 or 17 of chapter 272, said conviction shall be conclusive evidence of a serious incident of abuse by the convicted parent.
A probate and family court's finding by a preponderance of the evidence, that a pattern or serious incident of abuse has occurred shall create a rebuttable presumption that it is not in the best interests of the child to be placed in sole custody, shared legal custody, or shared physical custody with the abusive parent. Such presumption may be rebutted by a preponderance of the evidence that such custody award is in the best interests of the child. For the purposes of this section, an ''abusive parent'' shall mean a parent who has committed a pattern of abuse or a serious incident of abuse.
For the purposes of this section, the issuance of an order or orders under chapter 209A shall not in and of itself constitute a pattern or serious incident of abuse; nor shall an order or orders entered ex parte under said chapter 209A be admissible to show whether a pattern or serious incident of abuse has in fact occurred; provided, however, that an order or orders entered ex parte under said chapter 209A may be admissible for other purposes as the court may determine, other than showing whether a pattern or serious incident of abuse has in fact occurred; provided further, that the underlying facts upon which an order or orders under said chapter 209A was based may also form the basis for a finding by the probate and family court that a pattern or serious incident of abuse has occurred.
If the court finds that a pattern or serious incident of abuse has occurred and issues a temporary or permanent custody order, the court shall within 90 days enter written findings of fact as to the effects of the abuse on the child, which findings demonstrate that such order is in the furtherance of the child's best interests and provides for the safety and well-being of the child.
If ordering visitation to the abusive parent the court shall provide for the safety and well-being of the child, and the safety of the abused parent. The court may consider:
(a) ordering an exchange of the child to occur in a protected setting or in the presence of an appropriate third party;
(b) ordering visitation supervised by an appropriate third party, visitation center or agency;
(c) ordering the abusive parent to attend and complete, to the satisfaction of the court, a certified batterer's treatment program as a condition of visitation;
(d) ordering the abusive parent to abstain from possession or consumption of alcohol or controlled substances during the visitation and for 24 hours preceding visitation;
(e) ordering the abusive parent to pay the costs of supervised visitation;
(f) prohibiting overnight visitation;
(g) requiring a bond from the abusive parent for the return and safety of the child;
(h) ordering an investigation or appointment of a guardian ad litem or attorney for the child; and
(i) imposing any other condition that is deemed necessary to provide for the safety and well-being of the child and the safety of the abused parent.
Nothing in this section shall be construed to affect the right of the parties to a hearing under the rules of domestic relations procedure or to affect the discretion of the probate and family court in the conduct of such hearing.