code: public final LocalTransaction getLocalTransaction() throws ResourceException {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(this, tc, "getLocalTransaction"); 
  
          localTran = localTran == null ?
                          new WSRdbSpiLocalTransactionImpl(this, sqlConn) :
                          localTran;
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(this, tc, "getLocalTransaction", localTran); 
          return localTran;
      }
docs: Returns an javax.resource.spi.LocalTransaction instance. The
  LocalTransaction interface is used by the container to manage local
  transactions for a RM instance.
  
  @return a LocalTransaction instance
  @exception ResourceException - There should not be an exception thrown in this
  case. We just need to declare it as it is part of the interface.