ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
LoadbalancerReader lbr = _clbp.getLbReader(_ctx, _name);
// tranform the data using visitor pattern
Loadbalancer _lb = new Loadbalancer();
LoadbalancerVisitor lbVstr = new LoadbalancerVisitor(_lb);
lbr.accept(lbVstr);
ObjectFactory clbFactory = new ObjectFactory();
clbFactory.store(_lb, baos);
} catch (Exception e) {
System.out.println(e.getMessage());