// flush updates to the database if transaction is active.
if (tx != null && tx.isActive()) {
PersistenceManagerWrapper pmw = (PersistenceManagerWrapper)pm;
PersistenceManagerImpl pmi =
(PersistenceManagerImpl)pmw.getPersistenceManager();
pmi.internalFlush();
}
}
/** Returns a ContainerHelper instance that can be used to invoke
* the corresponding method.