code: public static byte[] generateStubBytes(Class<?> remoteInterface,
                                             int rmicCompatible) throws EJBConfigurationException {
          String stubClassName = getStubClassName(remoteInterface.getName());
          Method[] remoteMethods = remoteInterface.getMethods();
          String[] idlNames = getIdlMethodNames(remoteMethods);
  
          byte[] classBytes = generateClassBytes(stubClassName,
                                                 remoteInterface,
                                                 remoteMethods,
                                                 idlNames,
                                                 rmicCompatible); // PM46698
          return classBytes;
      }
docs: d457086