code: public boolean isSameRM(XAResource resource) throws XAException
     {
        if (overrideRmValue != null)
        {
           if (log.isTraceEnabled())
           {
              log.trace("Executing isSameRM with override value" + overrideRmValue + " for XAResourceWrapper" + this);
           }
           return overrideRmValue.booleanValue();
        }
        else
        {
           if (resource instanceof org.ironjacamar.core.spi.transaction.xa.XAResourceWrapper)
           {
              org.ironjacamar.core.spi.transaction.xa.XAResourceWrapper other =
                 (org.ironjacamar.core.spi.transaction.xa.XAResourceWrapper)resource;
              return xaResource.isSameRM(other.getResource());
           }
           else
           {
              return xaResource.isSameRM(resource);
           }
           
        }
     }
docs: {@inheritDoc}