code: public static <R extends ActionRequestBuilder, T> T logRequestQueryAndReturn(
              String method, R requestBuilder,
              ActionFuture<T> responseFunction, Long timeoutMillis) {
          try {
              logRequestQuery(method, requestBuilder, timeoutMillis);
              return timeoutMillis == null || timeoutMillis == 0 ?
                      responseFunction.actionGet() : responseFunction
                      .actionGet(timeoutMillis);
          } catch (Exception e) {
              return JMExceptionManager.handleExceptionAndThrowRuntimeEx(log, e,
                      method, requestBuilder);
          }
      }
docs: Log request query and return t.
  
  @param <R>              the type parameter
  @param <T>              the type parameter
  @param method           the method
  @param requestBuilder   the request builder
  @param responseFunction the response function
  @param timeoutMillis    the timeout millis
  @return the t