Court heard Gary O’Shaughnessy (39) had delusion that he and his brother were under a ‘forever curse’