code: @Override
      public String getXAExceptionContents(XAException xae) {
          StringBuilder xsb = new StringBuilder(350);
          try {
              Class<?> c = WSManagedConnectionFactoryImpl.priv.loadClass(mcf.jdbcDriverLoader, "oracle.jdbc.xa.OracleXAException");
  
              if (c.isInstance(xae)) {
                  int xaerror = (Integer) c.getMethod("getXAError").invoke(xae);
                  int oraerr = (Integer) c.getMethod("getOracleError").invoke(xae);
                  Method getXAErrorMessage = c.getMethod("getXAErrorMessage", int.class);
                  String EOLN = AdapterUtil.EOLN;
                  xsb.append(EOLN).append("The XA Error is            : ").append(xaerror).append(EOLN);
                  xsb.append("The XA Error message is    : ").append(getXAErrorMessage.invoke(null, xaerror)).append(EOLN);
                  xsb.append("The Oracle Error code is   : ").append(oraerr).append(EOLN);
                  xsb.append("The Oracle Error message is: ").append(getXAErrorMessage.invoke(null, oraerr)).append(EOLN);
              }
          } catch (Exception x) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "getXAExceptionContents", x);
          }
  
          if (xae.getCause() != null)   
            xsb.append("The cause is               : ").append(xae.getCause());
          return xsb.toString();
      }
docs: This method provides a plug-in point for providing meaningful logging information for an
  <code>XAException</code>. The information can include details of the original
  exception that caused the <code>XAException</code>, if applicable.
  WebSphere uses this method to obtain trace information for
  <code>XAException</code>s to include in WebSphere trace.
  
  @param xae the <code>XAException</code>.
  @return detailed information about the <code>XAException</code>, for inclusion in WebSphere trace.