return obj;
}
public void marshal(RegistryObject object,Element parent)
{
RegistryException regEx = (RegistryException)object;
Document document = parent.getOwnerDocument();
String generic = getGeneric(null);
String namespace = getUDDINamespace(generic);
Element fault = document.createElementNS(namespace,TAG_NAME);
String fCode = regEx.getFaultCode();
if (fCode != null)
{
Element fCodeElement = document.createElement("faultcode");
fCodeElement.appendChild(document.createTextNode(fCode));
fault.appendChild(fCodeElement);
}
String fString = regEx.getFaultString();
if (fString == null)
fString = "";
Element fStringElement = document.createElement("faultstring");
fStringElement.appendChild(document.createTextNode(fString));
fault.appendChild(fStringElement);
String fActor = regEx.getFaultActor();
if (fActor != null)
{
Element fActorElement = document.createElement("faultactor");
fActorElement.appendChild(document.createTextNode(fActor));
fault.appendChild(fActorElement);
}
// check for a DispositionReport in the exception and if one exists,
// grab it, marshal it into xml and stuff it into a SOAP fault
// detail element.
DispositionReport dispRpt = regEx.getDispositionReport();
if (dispRpt != null)
{
Element fDetailElement = document.createElement("detail");
IHandler handler = maker.lookup(DispositionReportHandler.TAG_NAME);
handler.marshal(dispRpt,fDetailElement);