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 .