Specify that Groovy exceptions are HTTP 400 (Bad Request) errors
Use the logger from AbstractComponent
catch 'asserts' in groovy scripts and enhance logging