code: private static void validateLocalBeanMethod(Method method,
                                                  String beanName)
                      throws EJBConfigurationException
      {
          int modifiers = method.getModifiers();
  
          // -----------------------------------------------------------------------
          // Methods on an EJB that exposes a No-Interface view (LocalBean),
          // must not be final (regardless whether public or not).
          // -----------------------------------------------------------------------
          if (Modifier.isFinal(modifiers))
          {
              // Log the error and throw meaningful exception.
              String className = method.getDeclaringClass().getName();
              Tr.error(tc, "JIT_INVALID_FINAL_METHOD_CNTR5106E",
                       new Object[] { method.getName(), className, beanName });
              throw new EJBConfigurationException("Method " + method.getName() + " on class " +
                                                  className + " must not be declared as final " +
                                                  "for the no-interface local view of bean " + beanName + ".");
          }
  
          // -----------------------------------------------------------------------
          // Public methods exposed through the No-Interface view (LocalBean)
          // must not have RemoteException (or subclass of) on the throws clause.
          // -----------------------------------------------------------------------
          if (Modifier.isPublic(modifiers))
          {
              Class<?>[] exceptions = method.getExceptionTypes();
  
              for (Class<?> exception : exceptions)
              {
                  if ((RemoteException.class).isAssignableFrom(exception))
                  {
                      // Log the error and throw meaningful exception.
                      String className = method.getDeclaringClass().getName();
                      Tr.error(tc, "JIT_INVALID_THROW_REMOTE_CNTR5101W",
                               new Object[] { method.getName(), className });
                      throw new EJBConfigurationException("Method " + method.getName() + " on class " +
                                                          className + " must not define the " +
                                                          "java.rmi.RemoteException exception on the throws " +
                                                          "clause for the no-interface local view of bean " +
                                                          beanName + ".");
                  }
              }
          }
      }
docs: F743-1756