return obj;
}
public void marshal(RegistryObject object,Element parent)
{
SharedRelationships relationships = (SharedRelationships)object;
String generic = getGeneric(null);
String namespace = getUDDINamespace(generic);
Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
String direction = relationships.getDirection();
if ((direction != null && (direction.length() > 0)))
element.setAttribute("direction",direction);
Vector keyedRefVector = relationships.getKeyedReferenceVector();
if ((keyedRefVector!=null) && (keyedRefVector.size() > 0))
{
AbstractHandler handler = maker.lookup(KeyedReferenceHandler.TAG_NAME);
for (int i=0; i < keyedRefVector.size(); i++)
handler.marshal((KeyedReference)keyedRefVector.elementAt(i),element);