correção do bug EntityManager is Closed.