}
else if (org.dom4j.io.DocumentResult.class.isAssignableFrom(desiredClass))
{
return new ResultHolder()
{
DocumentResult result = new DocumentResult();
public Result getResult()
{
return result;
}
public Object getResultObject()
{
return result;
}
};
}
else if (org.dom4j.Document.class.isAssignableFrom(desiredClass))
{
return new ResultHolder()
{
DocumentResult result = new DocumentResult();
public Result getResult()
{
return result;
}
public Object getResultObject()
{
return result.getDocument();
}
};
}
return null;