object.addAddressLine(new AddressLine("AddressLine1","keyNameAttr","keyValueAttr"));
object.addAddressLine(new AddressLine("AddressLine2"));
System.out.println();
RegistryObject regObject = object;
handler.marshal(regObject,parent);
child = (Element)parent.getFirstChild();
parent.removeChild(child);
XMLUtils.writeXML(child,System.out);