return obj;
}
public void marshal(RegistryObject object,Element parent)
{
TModelInstanceInfo tModInstInfo = (TModelInstanceInfo)object;
Element element = parent.getOwnerDocument().createElementNS(null,TAG_NAME);
AbstractHandler handler = null;
String tModelKey = tModInstInfo.getTModelKey();
if (tModelKey != null)
element.setAttribute("tModelKey",tModelKey);
Vector descrVector = tModInstInfo.getDescriptionVector();
if ((descrVector!=null) && (descrVector.size() > 0))
{
handler = maker.lookup(DescriptionHandler.TAG_NAME);
for (int i=0; i < descrVector.size(); i++)
handler.marshal((Description)descrVector.elementAt(i),element);
}
InstanceDetails instDet = tModInstInfo.getInstanceDetails();
if (instDet != null)
{
handler = maker.lookup(InstanceDetailsHandler.TAG_NAME);
handler.marshal(instDet,element);
}