docs: public static NoSuchEJBException NoSuchEJBException(String message,
                                                          Throwable cause) {
          NoSuchEJBException nsejb;
  
          if (cause == null) {
              nsejb = new NoSuchEJBException(message);
          } else {
              if (cause instanceof Exception) {
                  nsejb = new NoSuchEJBException(message, (Exception) cause);
              } else {
                  Exception wrappedCause = new Exception("See nested Throwable", cause);
                  nsejb = new NoSuchEJBException(message, wrappedCause);
                  cause = wrappedCause;
              }
  
              // And finally... insure the cause is set on Throwable.
              // Geronimo EJBException.getCause returns getCausedbyException, so
              // we do not expect this code to be used.                     F53643
              if (nsejb.getCause() == null) {
                  nsejb.initCause(cause);
              }
          }
  
          return nsejb;
      }