return obj;
}
public void marshal(RegistryObject object,Element parent)
{
ServiceInfo info = (ServiceInfo)object;
String generic = getGeneric(null);
String namespace = getUDDINamespace(generic);
Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
AbstractHandler handler = null;
// required attribute
String serviceKey = info.getServiceKey();
element.setAttribute("serviceKey",(serviceKey != null) ? serviceKey : "");
// required attribute
String businessKey = info.getBusinessKey();
element.setAttribute("businessKey",(businessKey != null) ? businessKey : "");
Vector vector = info.getNameVector();
if ((vector!=null) && (vector.size() > 0))
{
handler = maker.lookup(NameHandler.TAG_NAME);
for (int i=0; i < vector.size(); i++)
handler.marshal((Name)vector.elementAt(i),element);