presto-client/src/main/java/io/prestosql/client/JsonResponse.java/JsonResponse/getValue
class JsonResponse:    public T getValue()
    {
        if (!hasValue) {
            throw new IllegalStateException("Response does not contain a JSON value", exception);
        }
        return value;
    }