Moved jsoup logic out of adapter to improve performance.