fixing regression introduced when EJB Entity has been removed
Cut/paste of a publication between two applications did not work...