Fixing the menu to add attachments
The function AddAttachment was replaced by addAttachment with foreignId
Avoiding NPE
removing RemoteException not thrown from local EJB