docs: public static void validateLifeCycleSignature(InterceptorMethodKind kind, String lifeCycle, Method m, boolean ejbClass, J2EEName name)
                      throws EJBConfigurationException
      {
          // Validate method signature except for the parameter types,
          // which is done by this method.
          validateLifeCycleSignatureExceptParameters(kind, lifeCycle, m, ejbClass, name); // d450431
  
          // Now verify method parameter types.
          Class<?>[] parmTypes = m.getParameterTypes();
          if (ejbClass)
          {
              // This is EJB class, so interceptor should have no parameters.
              if (parmTypes.length != 0)
              {
                  // CNTR0231E: "{0}" interceptor method "{1}" signature is incorrect.
                  String method = m.toGenericString();
                  Tr.error(tc, "INVALID_LIFECYCLE_SIGNATURE_CNTR0231E", new Object[] { method, lifeCycle });
                  throw new EJBConfigurationException(lifeCycle + " interceptor \"" + method
                                                      + "\" must have zero parameters.");
              }
          }
          else
          {
              // This is an interceptor class, so InvocationContext is a required parameter
              // for the interceptor method.
              if ((parmTypes.length == 1) && (parmTypes[0].equals(InvocationContext.class)))
              {
                  // Has correct signature of 1 parameter of type InvocationContext
              }
              else
              {
                  // CNTR0232E: The {0} method does not have the required
                  // method signature for a {1} method of a interceptor class.
                  String method = m.toGenericString();
                  Tr.error(tc, "INVALID_LIFECYCLE_SIGNATURE_CNTR0232E", new Object[] { method, lifeCycle });
                  throw new EJBConfigurationException("CNTR0232E: The \"" + method
                                                      + "\" method does not have the required method signature for a \""
                                                      + lifeCycle + "\" method of a interceptor class.");
              }
          }
      }