Callable<?> invokeMethod(MethodHandler methodHandler, Object[] arguments) {
    return () -> {
      try {
        return methodHandler.invoke(arguments);
      } catch (Throwable th) {
        if (th instanceof FeignException) {
          throw (FeignException) th;
        }
        throw new RuntimeException(th);
      }
    };
  }
Callable < ? > invokeMethod ( MethodHandler methodHandler , Object [ ] arguments ) { return ( ) -> { try { return methodHandler . invoke ( arguments ) ; } catch ( Throwable th ) { if ( th instanceof FeignException ) { throw ( FeignException ) th ; } throw new RuntimeException ( th ) ; } } ; }
Invoke the Method Handler as a Callable.

@param methodHandler to invoke
@param arguments for the method
@return a Callable wrapper for the invocation.