private String getMethodString(Method method) {
    StringBuilder methodSb = new StringBuilder(method.getName());
    methodSb.append("_(");
    if (method.getParameterTypes().length != 0) {
      Iterator<Class<?>> it =
          Arrays.stream(method.getParameterTypes()).iterator();
      methodSb.append(it.next().getSimpleName());
      while (it.hasNext()) {
        methodSb.append(", ");
        methodSb.append(it.next().getSimpleName());
      }
    }
    methodSb.append(")");
    return methodSb.toString();
  }
@param method
@return String representation with arg types. eg getDatabase_(String, )
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java