code: public static Method findMethod (Class<?> clazz, String name)
      {
          Method[] methods = clazz.getMethods();
          for (Method method : methods) {
              if  (method.getName().equals(name)) {
                  return method;
              }
          }
          return null;
      }
docs: Locates and returns the first method in the supplied class whose name is equal to the
  specified name.
  
  @return the method with the specified name or null if no method with that name could be
  found.