Releasing the defendant from the dock the judge told him: 'If this had come to court a month ago you would be starting a substantial prison sentence.'