docs: private Exception mapEJBException(EJSDeployedSupport s, EJBException e) throws CSIException
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.entry(tc, "mapEJBException: " + e);
          }
  
          Exception mappedException = null;
          String message = " ";
  
          // First map EJBException to a RemoteException.
          RemoteException rex;
  
          if (e instanceof TransactionRolledbackLocalException)
          {
              rex = new TransactionRolledbackException(message);
          }
          else if (e instanceof AccessLocalException)
          {
              rex = new AccessException(message);
          }
          else if (e instanceof InvalidTransactionLocalException)
          {
              rex = new InvalidTransactionException(message);
          }
          else if (e instanceof NoSuchObjectLocalException)
          {
              rex = new NoSuchObjectException(message);
          }
          else if (e instanceof TransactionRequiredLocalException)
          {
              rex = new TransactionRequiredException(message);
          }
          //        else if (e instanceof InvalidActivityLocalException)
  //        {
  //            rex = new InvalidActivityException(message);
  //        }
  //        else if (e instanceof ActivityRequiredLocalException)
  //        {
  //            rex = new ActivityRequiredException(message);
  //        }
  //        else if (e instanceof ActivityCompletedLocalException)
  //        {
  //            rex = new ActivityCompletedException(message);
  //        }
          else
          {
              rex = new RemoteException(message);
          }
  
          // Now set detail in RemoteException.
          rex.detail = s.rootEx;
  
          // Since this code created the RemoteException being passed
          // to OrbUtilsImpl.mapException method, set the stack trace
          // in it to be the exception stack from the root exception
          // so that any exception chain the ORB returns to the
          // client (e.g. CORBA UnknownException case) does not point
          // to this code as being the root cause of the problem.
          rex.setStackTrace(s.rootEx.getStackTrace()); //180095
  
          // If the current method request came through the ORB, then the final
          // RemoteException must be mapped to the appropriate CORBA exception.
          // Otherwise, for example for WebService Endpoint methods, the
          // RemoteException does not need to be mapped to anything,
          // WebServices will do that.                                       d228774
          if (s.ivWrapper.ivInterface.ivORB)
          {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "mapEJBException calling OrbUtils.mapException: " + rex);
              }
  
              // Now have OrbUtils map to a CORBA exception for remote client stub.
              mappedException = getOrbUtils().mapException(rex);
          }
          else
          {
              mappedException = rex;
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.exit(tc, "mapEJBException returning: " + mappedException);
          }
          return mappedException;
      }