@@ -0,0 +1,914 @@
+package org.jdspec.ui4j;%0A%0Aimport java.io.File;%0Aimport org.apache.commons.io.FileUtils;%0Aimport com.ui4j.api.browser.BrowserEngine;%0Aimport com.ui4j.api.browser.BrowserFactory;%0Aimport com.ui4j.api.browser.Page;%0Aimport com.ui4j.api.browser.PageConfiguration;%0A%0Apublic class Ui4jMain %7B%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        System.setProperty(%22ui4j.headless%22, %22true%22);%0A        BrowserEngine webKit = BrowserFactory.getWebKit();%0A        %0A        PageConfiguration config = new PageConfiguration();%0A        config.setUserAgent(%22Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36%22);%0A%0A        %0A        Page page = webKit.navigate(%22http://www.google.com.br%22, config);%0A        FileUtils.write(new File(%22/home/ec2-user/ui4j.html%22), page.getDocument().getBody().getOuterHTML());%0A        page.close();%0A        webKit.shutdown();%0A    %7D%0A%7D%0A

Create Ui4jMain.java