code: private int getMethodIndex(Method method)
      {
          for (int i = 0; i < methodInfos.length; ++i)
          {
              if (methodInfos[i].methodsMatch(method)) // d517824
              {
                  return i;
              }
          }
  
          // Log the error and throw meaningful exception.
          Tr.error(tc, "WS_ENDPOINT_METHOD_MISSING_CNTR0178E",
                   new Object[] { method.getName(),
                                 bmd.j2eeName.getComponent(),
                                 bmd.j2eeName.getModule(),
                                 bmd.j2eeName.getApplication() });
          throw ExceptionUtil.EJBException
                          ("Configured Web service endpoint method " + method.getName() +
                           " is not implemented by the " + bmd.j2eeName.getComponent() +
                           " bean in the " + bmd.j2eeName.getModule() + " module of the " +
                           bmd.j2eeName.getApplication() + " application.", null);
      }
docs: Returns the method index into the array of methods for the
  WebService Endpoint interface. <p>
  
  The method index is used by ejbPreInvoke to locate the
  correct method level information, such as transaction
  attributes. <p>
  
  This is the value that would normally be hard coded
  into a generated (EJBDeploy or JITDeploy) wrapper. <p>
  
  @throws EJBException when the specified method is not
  present on the WebService Endpoint interface.