code: void commitApplicationLocalTransaction() throws ResourceException {
  
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.entry(this, TRACE, "commitApplicationLocalTransaction");
          }
  
          if (_applicationLocalTransaction != null) {
  
              final SIUncoordinatedTransaction uncoordinatedTransaction = _applicationLocalTransaction
                              .getUncoordinatedTransaction();
  
              try {
  
                  uncoordinatedTransaction.commit();
  
              } catch (SIException exception) {
                  // No FFDC code needed
  
                  if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
                      SibTr.exception(this, TRACE, exception);
                  }
                  throw new ResourceException(NLS.getFormattedMessage(
                                                                      "CONTAINER_COMMIT_FAILED_CWSIV0162",
                                                                      new Object[] { exception }, null), exception);
  
              } catch (SIErrorException exception) {
                  // No FFDC code needed
  
                  if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
                      SibTr.exception(this, TRACE, exception);
                  }
                  throw new ResourceException(NLS.getFormattedMessage(
                                                                      "CONTAINER_COMMIT_FAILED_CWSIV0162",
                                                                      new Object[] { exception }, null), exception);
  
              }
  
          }
  
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.exit(this, TRACE, "commitApplicationLocalTransaction");
          }
  
      }
docs: Commits any currently active application local transaction. Called by the
  managed connection's <code>LocalTransaction</code> implementation when
  a <code>commit</code> occurs without a corresponding <code>begin</code>.
  This indicates that the container is attempting a cleanup of outstanding
  application local transaction work. The container shouldn't do this
  unless it has received a <code>LOCAL_TRANSACTION_STARTED</code> event
  an no corresponding completion event. If this is the case then we <b>
  should </b> have an active application local transaction but, on the off
  chance that we don't, do nothing.
  
  @throws ResourceException
  if the commit fails