return obj;
}
public void marshal(RegistryObject object,Element parent)
{
KeysOwned keysOwned = (KeysOwned)object;
Element element = parent.getOwnerDocument().createElement(TAG_NAME);
AbstractHandler handler = null;
String fromKey = keysOwned.getFromKey();
if ((fromKey != null) && (fromKey.length() > 0))
{
Element keyElement = parent.getOwnerDocument().createElement(FROM_KEY_TAG_NAME);
keyElement.appendChild(parent.getOwnerDocument().createTextNode(fromKey));
element.appendChild(keyElement);
}
String toKey = keysOwned.getToKey();
if ((toKey != null) && (toKey.length() > 0))
{
Element keyElement = parent.getOwnerDocument().createElement(TO_KEY_TAG_NAME);
keyElement.appendChild(parent.getOwnerDocument().createTextNode(toKey));
element.appendChild(keyElement);