package com.github.hronom.scrape.dat.rooms.core.webpage.html.grabbers;

import com.teamdev.jxbrowser.chromium.Browser;

import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class JxBrowserGrabber implements Grabber {
    private static final Logger logger = LogManager.getLogger();

    private final Browser browser;

    public JxBrowserGrabber() {
        browser = new Browser();
    }

    @Override
    public String grabHtml(String webpageUrl) {
        browser.loadURL(webpageUrl);
        // Wait for loading.
        while (browser.isLoading()) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        String html = browser.getHTML();
        html = StringEscapeUtils.unescapeHtml4(html);
        browser.stop();
        return html;
    }
}

@@ -378,22 +378,16 @@
 private 
-final 
 Browser 
@@ -424,24 +424,42 @@
 Grabber() %7B%0A
+        try %7B%0A    
         brow
@@ -475,24 +475,165 @@
  Browser();%0A
+        %7D catch (ExceptionInInitializerError exceptionInInitializerError) %7B%0A            logger.error(exceptionInInitializerError);%0A        %7D%0A
     %7D%0A%0A    @

Add catch of license error from JxBrowser