WPaloServiceProvider.getInstance().getVariables(
report, user, new Callback<XVariableDescriptor>(){
public void onSuccess(
XVariableDescriptor desc) {
XWorkbook wb = ws.getWorkbook();
XAccount acc = wb.getAccount();
XConnection con = acc.getConnection();
HashMap <XObject, String> mapping = desc.getVariableMapping();
String host = con.getHost();
String service = con.getService();
if (service.indexOf(":") != -1) {
service = service.split(":")[1];
}
String url = host + ":" + service + "/cc/auto_login.php?user=";
url += acc.getLogin() + "&pass=" + acc.getPassword();
url += "&app=" + wb.getAppName() + "&wb=" + wb.getName();
url += "&ws=" + ws.getName() + "&lang=en_US&w=1024&h=768";
// for (XElement xe: report.getElements()) {
// for (XObject match: mapping.keySet()) {
// if (match instanceof XHierarchy) {