*/
public static void exportXml(LoadbalancerReader lbRdr,OutputStream out)
throws IOException{
// tranform the data using visitor pattern
Loadbalancer _lb = new Loadbalancer();
LoadbalancerVisitor lbVstr = new LoadbalancerVisitor(_lb);
lbRdr.accept(lbVstr);
try {
String footer = _strMgr.getString("GeneratedFileFooter",
new Date().toString());
// write the header
_lb.graphManager().setDoctype(PUBLICID, SYSTEMID);
_lb.write(out);
out.write(footer.getBytes());
} finally {
if (out != null) {
out.close();
out = null;