String appname = "visualizationApp";
if (wrkflowtable != null) {
appname = wrkflowtable.getName();
}
Element root = xmldoc.createElement("workflow-app");
root.setAttribute("xmlns", wrkflowtable.getNameSpace());
root.setAttribute("name", appname);
xmldoc.appendChild(root);
wrkflowtable.generateXML(xmldoc, root, null);