A former Nantucket man who raped a child has been sentenced to a year in jail under a plea deal that even his own lawyer called "unquestionably lenient."

Hadi Nabulsi was sentenced Tuesday to 2½ years in jail with one year to serve and the balance suspended for five years. He pleaded guilty to child rape and indecent assault and battery on a child.

Prosecutors say the 3-year-old girl was raped in 2015.

Nabulsi's attorney tells The Boston Globe the sentence was justified because of the difficulty prosecutors would have had in getting a conviction.

Prosecutors didn't comment on the sentence. But they tell the

Cape Cod Times that many factors are weighed in reaching a plea deal, including the traumatic impact of a trial on the victim.