Trevor Hegarty has been assessed as posing a high risk of committing serious harmful offences, and as unmanageable in the community