code: public final boolean isSameRM(XAResource xaRes) throws XAException {
          boolean isSame = false;
          WSRdbXaResourceImpl inputXA;
          try {
              inputXA = (WSRdbXaResourceImpl) xaRes;
          } catch (ClassCastException ex) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(this, tc, "The Input XAResource is not the same type as the current XAResource", xaRes);
              // eat the exception and return false..
              return isSame;
          }
          isSame = ivXaRes.isSameRM(inputXA.ivXaRes);
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(this, tc, "isSameRM?", new Object[] { xaRes, isSame ? Boolean.TRUE : Boolean.FALSE }); 
  
          return isSame;
      }
docs: This method is called to determine if the resource manager instance represented by the
  target object is the same as the resouce manager instance represented by the parameter
  xares.
  
  @param xaRes An XAResource object whose resource manager instance is to be compared with the
  resource manager instance of the target object.
  @return true if it's the same RM instance; otherwise false.
  @exception XAException
  Possible exception values are XAER_RMERR, XAER_RMFAIL.
  Possible causes for this exception are:
  1) isSameRM call on physical XAResource failed