Now using proper JAX-RS ExceptionMapping, thus cleaning up a lot of JAX-RS endpoint methods and also installing finally{} statements to be sure that JCR sessions are always logged out: for https://www.pivotaltracker.com/story/show/44821755