public boolean isSameRM ( XAResource xares ) throws XAException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isSameRM" , xares ) ; XAResource actualXARes = xares ; if ( xares instanceof SuspendableXAResource ) { actualXARes = ( ( SuspendableXAResource ) xares ) . getCurrentXAResource ( ) ; } boolean result = currentLiveXAResource . isSameRM ( actualXARes ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "isSameRM" , result ) ; return result ; }
In this method we must ensure that we unpack the appropriate XAResource if appropriate from the SuspendableXAResource instance if one was passed in .