[sto19-tsk29] Improvements and fixes in the EJB layer-Changes in some methods of the EJB layer-Application exceptions need to be defined