code: @Override
      final public LocalTransaction getLocalTransaction()
                      throws ResourceException {
  
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.entry(this, TRACE, "getLocalTransaction");
          }
  
          if (_coreConnection == null) {
  
              throw new ResourceAdapterInternalException(NLS.getFormattedMessage(
                                                                                 "EXCEPTION_RECEIVED_CWSJR1107",
                                                                                 new Object[] { "getLocalTransaction" }, null));
  
          }
  
          if (_localTransaction == null) {
              _localTransaction = new JmsJcaLocalTransaction();
          }
  
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.exit(this, TRACE, "getLocalTransaction", _localTransaction);
          }
          return _localTransaction;
  
      }
docs: Returns a <code>LocalTransaction</code> for this managed connection.
  This is an inner class so is able to create transaction objects on the
  managed connection's core connection.
  
  @return the <code>LocalTransaction</code>
  @throws ResourceException
  generic exception