Handling message from ServiceBean layer

I want to show more user-friendly error message (e.g. notifications or the like) that I may throw from entityListener or ServiceBean.

 try {
         .....
        } catch (Exception e) {
            throw new RuntimeException("Failed to execute department import procedure", e);
        }

Hello!

Looks like this doc should help to achieve this.

Regards,
Dmitry