return obj;
}
public void marshal(RegistryObject object,Element parent)
{
FindRelatedBusinesses request = (FindRelatedBusinesses)object;
String generic = request.getGeneric();
generic = getGeneric(generic);
String namespace = getUDDINamespace(generic);
Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
AbstractHandler handler = null;
element.setAttribute("generic",generic);
int maxRows = request.getMaxRows();
if (maxRows > 0)
element.setAttribute("maxRows",String.valueOf(maxRows));
FindQualifiers qualifiers = request.getFindQualifiers();
if ((qualifiers != null) && (qualifiers.size() > 0))
{
handler = maker.lookup(FindQualifiersHandler.TAG_NAME);
handler.marshal(qualifiers,element);
}
BusinessKey businessKey = new BusinessKey(request.getBusinessKey());
if (businessKey != null)
{
handler = maker.lookup(BusinessKeyHandler.TAG_NAME);
handler.marshal(businessKey,element);
}
KeyedReference keyedRef = request.getKeyedReference();
if (keyedRef != null)
{
handler = maker.lookup(KeyedReferenceHandler.TAG_NAME);
handler.marshal(keyedRef,element);
}