code: private NamingException newCannotInstantiateObjectException(String name,
                                                                  Exception cause) {
          String msgTxt = Tr.formatMessage(tc, "JNDI_CANNOT_INSTANTIATE_OBJECT_CWNEN1001E", name);
          NamingException nex = new NamingException(msgTxt);
          nex.initCause(cause);
  
          return nex;
      }
docs: Internal method that creates a NamingException that contains helpful
  information regarding why a binding failed to resolve. <p>
  
  The returned exception will provide similar information as the
  CannotInstantiateObjectException from traditional WAS.