/* */ public void tidyup()
/* */ throws ResourceException
/* */ {
/* 719 */ if (this.localTransaction.get())
/* */ {
/* 721 */ LocalTransaction local = null;
/* 722 */ ManagedConnection mc = getManagedConnection();
/* */ try
/* */ {
/* 725 */ local = mc.getLocalTransaction();
/* */ }
/* */ catch (Throwable t)
/* */ {
/* 729 */ JBossResourceException.rethrowAsResourceException("Unfinished local transaction - error getting local transaction from " + this, t);
/* */ }
/* 731 */ if (local == null) {
/* 732 */ throw new ResourceException("Unfinished local transaction but managed connection does not provide a local transaction. " + this);
/* */ }
/* */
/* 735 */ local.rollback();
/* 736 */ this.log.debug("Unfinished local transaction was rolled back." + this);
/* */ }
/* */ }