code: public static String methodKey(Method m)
      {
          StringBuffer result = new StringBuffer(m.getName());
  
          result.append("(");
  
          Class<?> argTypes[] = m.getParameterTypes();
          for (int i = 0; i < argTypes.length; i++) {
              result.append(argTypes[i].getName());
              result.append(",");
          }
          result.append(")");
          return result.toString();
      }
docs: Get method name string of form:
  
  methodName(<class name of arg1>,<class name of arg2>,...)