improved exception handling
Merge branch 'BS-8994_DocManag_Multiple' of https://github.com/bonitasoft/bonita-web into BS-8994_DocManag_Multiple