code: public static Method getMethodByName(final Class<?> cls, final String action) throws NoSuchMethodException {
          for (final Method m : cls.getMethods()) {
              if (m.getName().equals(action)) {
                  return m;
              }
          }
          throw new NoSuchMethodException(action);
      }
docs: Return the method that exactly match the action name. The name must be unique into the class.
  
  @param cls the class which contain the searched method
  @param action the name of the method to find
  @return the method
  @throws NoSuchMethodException if no method was method