}
Object ret = null;
XAResourceTransaction restx = null;
CompositeTransaction ct = null;
CompositeTransactionManager ctm = null;
ctm = Configuration.getCompositeTransactionManager ();
boolean inTx = false;
// false if resume should be called (first invocation in tx)
if ( ctm != null )
ct = ctm.getCompositeTransaction ();
inTx = pc_.isInResourceTransaction ();
if ( ct != null && ct.getProperty ( TransactionManagerImp.JTA_PROPERTY_NAME ) != null && !pc_.isDiscarded () ) {
// only enlist if there is a NORMAL tx
// AND if the pc is not yet discarded (i.e. closed event