try
{
rm.commit(inDoubtCM, xid_im, onePhase);
// close the connection/transaction since it can never be used again.
inDoubtCM.cleanupOnError(StandardException.closeException());
return;
}
catch (StandardException se)
{
// The rm threw an exception, clean it up in the approprate