Rest-gen: Thread cookieJar using modifyRequest instead of directly