{
return new DOMSource((org.w3c.dom.Node) src);
}
else if (src instanceof DelayedResult)
{
DelayedResult result = ((DelayedResult) src);
DOMResult domResult = new DOMResult();
result.write(domResult);
return new DOMSource(domResult.getNode());
}
else if (src instanceof OutputHandler)
{
OutputHandler handler = ((OutputHandler) src);