docs: private static boolean isEnvEntryType(Class<?> clazz)
      {
          if (clazz.isPrimitive() ||
              clazz == String.class ||
              clazz == Integer.class ||
              clazz == Long.class ||
              clazz == Boolean.class ||
              clazz == Byte.class ||
              clazz == Character.class ||
              clazz == Float.class ||
              clazz == Double.class ||
              clazz == Short.class)
          {
              return true;
          }
  
          // If EE5Compatibility has not been enabled, then Class and Enum
          // are also both env-entries starting in EJB 3.1.       F743-25853 d657801
          if (!EE5Compatibility &&
              (clazz == Class.class ||
              clazz.isEnum()))
          {
              return true;
          }
  
          return false;
      }