To avoid "com.gargoylesoftware.htmlunit.ScriptException: ReferenceError"
error, add
"webClient.getOptions().setThrowExceptionOnScriptError(false);" in
WebCrawlerClient.java