To test you can use the following command:

curl -i --header "Accept: application/json" "http://localhost:8080/aerogear-controller-demo/throwException"
Change By: Daniel Bevenius (04/Jan/13 10:50 AM)
Status: Open Pull Request Sent
Git Pull Request: https://github.com/aerogear/aerogear-controller-demo/pull/12
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira