"There have only been a handful of prosecutions over the years under this legislation", defence barrister says