Judge condemns legal aid 'frolic