docs: private UnavailableException mapAndLogTranEnlistmentNotNeeded()
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
          {
              Tr.entry(tc, "MEF.mapAndLogTranEnlistmentNotNeeded for enterprise class "
                           + beanMetaData.enterpriseBeanName);
          }
  
          UnavailableException ex = null;
  
          switch (ivEnlistNotNeededReason)
          {
              case (RA_DOES_NOT_SUPPORT_XATRANSACTIONS): {
                  if (ivEnlistNotNeededMessageLogged == false)
                  {
                      // CNTR0087E: Resource adapter {0} is not allowed to pass a non null XAResource to createEndpoint method for MDB {1}.
                      Tr.error(tc, "RA_DOES_NOT_SUPPORT_XATRANSACTIONS_CNTR0087E",
                               ivRAKey, beanMetaData.j2eeName);
                  }
                  ex = new UnavailableException("Transaction recovery not setup for this RA since RA does not support XA transactions");
                  break;
              }
  
              case (ERROR_DURING_TRAN_RECOVERY_SETUP): {
                  if (ivEnlistNotNeededMessageLogged == false)
                  {
                      // CNTR0086E: Transaction recovery setup error occurred for resource adapter {0}, MDB {1}.
                      Tr.error(tc, "ERROR_DURING_TRAN_RECOVERY_SETUP_CNTR0086E",
                               ivRAKey, beanMetaData.j2eeName);
                  }
                  ex = new UnavailableException("Error occured during transaction recovery setup for this Resource Adapter");
                  break;
              }
  
              default: {
                  if (ivEnlistNotNeededMessageLogged == false)
                  {
                      // CNTR0081E: setTranEnlistmentNotNeeded called with an unrecognized reason code of {0}.
                      Tr.error(tc, "REASON_CODE_NOT_RECOGNIZED_CNTR0081E", Integer.valueOf(ivEnlistNotNeededReason));
                  }
                  ex = new UnavailableException("Error occured during transaction recovery setup for this Resource Adapter");
                  break;
              }
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
          {
              Tr.exit(tc, "MEF.mapAndLogTranEnlistmentNotNeeded for enterprise class "
                          + beanMetaData.enterpriseBeanName);
          }
  
          // Indicate error message is logged to prevent logging next time this method is called
          // for this MessageEndpointFactory instance.
          ivEnlistNotNeededMessageLogged = true;
  
          // Return exception to the caller to throw.
          return ex;
      }