public void beforeCompletion()
{
if (log.isDebugEnabled()) log.debug("beforeCompletion was called, nothing to do");
ConnectionManagerIF cm = serviceConnectionManager();
if(cm.isBatchMode()) cm.executeBatch();
// close connection immediately when in JTA-tx to avoid bad reports from server con-pool
if(cm.isInLocalTransaction())
{
// we should not be in a local tx when performing tx completion
log.warn("Seems the used PersistenceBroker handle wasn't closed, close the used" +