Violation of this paragraph is a Class C crime. In determining the sentence for a violation of this paragraph the court shall impose a sentence of imprisonment by using a 2-step process. In the first step the court shall determine a base term of imprisonment of one year. In the 2nd step the court shall determine and impose a term of imprisonment for the defendant the length of which is appropriate for the defendant after consideration of the factors required by section 1252, subsection 5-D and aggravating and mitigating factors, including, but not limited to, the character of the defendant and the defendant's criminal history, the effect of the offense on the victim and the protection of the public interest.
For the purposes of this paragraph, "prior conviction" means a conviction for a violation of this section; Title 5, section 4659; Title 15, section 321; former Title 19, section 769; Title 19-A, section 4011; Title 22, section 4036; any other temporary, emergency, interim or final protective order; an order of a tribal court of the Passamaquoddy Tribe or the Penobscot Nation; any similar order issued by any court of the United States or of any other state, territory, commonwealth or tribe; or a court-approved consent agreement. Section 9-A governs the use of prior convictions when determining a sentence . ;’