Seems like disproportionate punishment for 18 years for constant harassment and first time offence (?). As a taxpayer, it seems economically cheaper to rehabilitate him for the non-violent offences and get him contributing back to the economy rather than spending money incarnating him.
IANAP (I am not a participant) beyond the article. I don't know the full case details to warrant the punishment.