public static Object invoke( MethodHandle method, Object target )
    {
        try
        {
            return method.invokeWithArguments( target );
        }
        catch ( RuntimeException | Error e )
        {
            throw e;
        }
        catch ( Throwable e )
        {
            throw new RuntimeException( e );
        }
    }
public static Object invoke ( MethodHandle method , Object target ) { try { return method . invokeWithArguments ( target ) ; } catch ( RuntimeException | Error e ) { throw e ; } catch ( Throwable e ) { throw new RuntimeException ( e ) ; } }
Invoke the given method handle with the specified single argument. Handles the exceptions declared by
MethodHandle allowing this method to be used in a context where no checked exceptions may be thrown.

@param method the method handle to invoke.
@param target the argument to pass to the method.
@return the result of invoking the method.