final String username = System.getProperty("confluenceUsername");
final String password = System.getProperty("confluencePassword");
if (validate(username) && validate(password)) {
try {
final String endpoint = "https://cwiki.apache.org/confluence/rpc/xmlrpc";
final Confluence confluence = new Confluence(endpoint);
confluence.login(username, password);
final Page page = confluence.getPage("OPENEJB", "Validation Keys Audit Report");
page.setContent(confluenceOutput);
confluence.storePage(page);
confluence.logout();
} catch (Exception e) {
e.printStackTrace();
}
}
}