Of Detached Entities and Glassfish NullPointerExceptions