docs: protected String lookupEeApplicationName() {
  
      try {
        InitialContext initialContext = new InitialContext();
  
        String appName = (String) initialContext.lookup(JAVA_APP_APP_NAME_PATH);
        String moduleName = (String) initialContext.lookup(MODULE_NAME_PATH);
  
        // make sure that if an EAR carries multiple PAs, they are correctly
        // identified by appName + moduleName
        if (moduleName != null && !moduleName.equals(appName)) {
          return appName + "/" + moduleName;
        } else {
          return appName;
        }
      }
      catch (NamingException e) {
        throw LOG.ejbPaCannotAutodetectName(e);
      }
    }